better alignment value for stack variables

fixes debug info sometimes not being available for parameters
This commit is contained in:
Andrew Kelley
2016-04-28 15:10:27 -07:00
parent 4815c03caa
commit a299de2265
3 changed files with 15 additions and 9 deletions

View File

@@ -641,6 +641,10 @@ void ZigLLVMAddModuleDebugInfoFlag(LLVMModuleRef module) {
unwrap(module)->addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION);
}
unsigned ZigLLVMGetPrefTypeAlignment(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
return unwrap(TD)->getPrefTypeAlignment(unwrap(Ty));
}
//------------------------------------
#include "buffer.hpp"