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 | 50872d5385463cf1d2e23a758516e7f818e1af24 (patch) | |
tree | 36ca6bc404c41a2aab8566743c1e8479fd9b6b92 | |
parent | 325297142c93ac162fcf9a3d78faeb1f49763914 (diff) | |
download | external_llvm-50872d5385463cf1d2e23a758516e7f818e1af24.zip external_llvm-50872d5385463cf1d2e23a758516e7f818e1af24.tar.gz external_llvm-50872d5385463cf1d2e23a758516e7f818e1af24.tar.bz2 |
Add a TargetData to the PassManager regardless of the TargetMachine.
This should unbreak the Sparc JIT again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 4426c67..3d4bc4c 100644 --- 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); |