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 {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to