mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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:
parent
325297142c
commit
50872d5385
@ -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