mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02: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
|
// Initialize MCE
|
||||||
MCE = createEmitter(*this);
|
MCE = createEmitter(*this);
|
||||||
|
|
||||||
|
// Add target data
|
||||||
|
PM.add (new TargetData (TM.getTargetData ()));
|
||||||
|
|
||||||
// Compile LLVM Code down to machine code in the intermediate representation
|
// Compile LLVM Code down to machine code in the intermediate representation
|
||||||
TJI.addPassesToJITCompile(PM);
|
TJI.addPassesToJITCompile(PM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user