projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not generate 32-bit call on win64 when imm does not fit
[oota-llvm.git]
/
lib
/
Target
/
Target.cpp
diff --git
a/lib/Target/Target.cpp
b/lib/Target/Target.cpp
index 375cd642de7af35922d20a5d6c82f92d252093e0..ed544b73eaeda36d5bc33a9354daeca6e785f7a1 100644
(file)
--- 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 "llvm-c/Target.h"
#include "llvm/PassManager.h"
#include "llvm/Target/TargetData.h"
+#include <cstring>
using namespace llvm;
using namespace llvm;
@@
-52,7
+53,7
@@
unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
}
unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
}
unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
- return unwrap(TD)->get
ABIType
Size(unwrap(Ty));
+ return unwrap(TD)->get
TypeAlloc
Size(unwrap(Ty));
}
unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
}
unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) {