diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-14 17:45:52 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-14 17:45:52 +0000 |
commit | aec2bcd63bd46fafaf2b1079965056869c2b0a49 (patch) | |
tree | 0ac78b3402f297de3f12cab0c4ef18780880669c /llvm/lib | |
parent | 9a2e37bccdf1868be54bfef2f2e6e5928d6b2bc3 (diff) | |
download | bcm5719-llvm-aec2bcd63bd46fafaf2b1079965056869c2b0a49.tar.gz bcm5719-llvm-aec2bcd63bd46fafaf2b1079965056869c2b0a49.zip |
Add a TargetData to the PassManager regardless of the TargetMachine.
This should unbreak the Sparc JIT again.
llvm-svn: 12949
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 4426c67ef8f..3d4bc4c6882 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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); |