[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 13 21:52:57 PST 2007
Changes in directory llvm/lib/ExecutionEngine/JIT:
JIT.cpp updated: 1.92 -> 1.93
---
Log message:
Generalize TargetData strings, to support more interesting forms of data.
Patch by Scott Michel.
---
Diffs of the changes: (+1 -1)
JIT.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.92 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.93
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.92 Tue Feb 13 00:01:22 2007
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp Tue Feb 13 23:52:17 2007
@@ -338,7 +338,7 @@
// compilation.
const Type *GlobalType = GV->getType()->getElementType();
size_t S = getTargetData()->getTypeSize(GlobalType);
- size_t A = getTargetData()->getTypeAlignmentPref(GlobalType);
+ size_t A = getTargetData()->getPrefTypeAlignment(GlobalType);
if (A <= 8) {
Ptr = malloc(S);
} else {
More information about the llvm-commits
mailing list