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
This commit is contained in:
Brian Gaeke 2004-04-14 17:45:52 +00:00
parent 325297142c
commit 50872d5385

View File

@ -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);