1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +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:
Brian Gaeke 2004-04-14 17:45:52 +00:00
parent cd21d1e40f
commit 2c02798e86

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