[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Apr 14 12:47:08 PDT 2004


Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.32 -> 1.33

---
Log message:

Add a TargetData to the PassManager regardless of the TargetMachine.
This should unbreak the Sparc JIT again.


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.32 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.33
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.32	Sat Jan 31 18:32:35 2004
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Wed Apr 14 12:45:52 2004
@@ -32,6 +32,9 @@
   // Initialize MCE
   MCE = createEmitter(*this);
   
+  // Add target data
+  PM.add (new TargetData (TM.getTargetData ()));
+
   // Compile LLVM Code down to machine code in the intermediate representation
   TJI.addPassesToJITCompile(PM);
 





More information about the llvm-commits mailing list