mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +00:00
Add a TargetData to the PassManager regardless of the TargetMachine.
This should unbreak the Sparc JIT again. llvm-svn: 12949
This commit is contained in:
parent
cd21d1e40f
commit
2c02798e86
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user