projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3252971
)
Add a TargetData to the PassManager regardless of the TargetMachine.
author
Brian Gaeke
<gaeke@uiuc.edu>
Wed, 14 Apr 2004 17:45:52 +0000
(17:45 +0000)
committer
Brian Gaeke
<gaeke@uiuc.edu>
Wed, 14 Apr 2004 17:45:52 +0000
(17:45 +0000)
This should unbreak the Sparc JIT again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12949
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/JIT.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/JIT.cpp
b/lib/ExecutionEngine/JIT/JIT.cpp
index 4426c67ef8fb7f2c1d0a372a6596e7fe322e430b..3d4bc4c68826c7b6b4e3d07d0fd959357b63a781 100644
(file)
--- a/
lib/ExecutionEngine/JIT/JIT.cpp
+++ b/
lib/ExecutionEngine/JIT/JIT.cpp
@@
-32,6
+32,9
@@
JIT::JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji)
// 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);