X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FTarget.cpp;h=ed544b73eaeda36d5bc33a9354daeca6e785f7a1;hb=941222eea05cb5e0bf6b1789c3d6beb4e66cc375;hp=375cd642de7af35922d20a5d6c82f92d252093e0;hpb=3e0c83559397c87e06ef29c41385e7adc34573c2;p=oota-llvm.git diff --git a/lib/Target/Target.cpp b/lib/Target/Target.cpp index 375cd642de7..ed544b73eae 100644 --- a/lib/Target/Target.cpp +++ b/lib/Target/Target.cpp @@ -15,6 +15,7 @@ #include "llvm-c/Target.h" #include "llvm/PassManager.h" #include "llvm/Target/TargetData.h" +#include using namespace llvm; @@ -52,7 +53,7 @@ unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { } unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { - return unwrap(TD)->getABITypeSize(unwrap(Ty)); + return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); } unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {