mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Set the datalayout in the gold plugin.
This fixes the gold tests after r230054. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a62a2a5ae
commit
7ef23e62b2
@ -693,6 +693,9 @@ getModuleForFile(LLVMContext &Context, claimed_file &F,
|
||||
}
|
||||
|
||||
static void runLTOPasses(Module &M, TargetMachine &TM) {
|
||||
if (const DataLayout *DL = TM.getDataLayout())
|
||||
M.setDataLayout(DL);
|
||||
|
||||
legacy::PassManager passes;
|
||||
passes.add(new DataLayoutPass());
|
||||
passes.add(createTargetTransformInfoWrapperPass(TM.getTargetIRAnalysis()));
|
||||
|
Loading…
Reference in New Issue
Block a user