forked from OSchip/llvm-project
Set the datalayout in the gold plugin.
This fixes the gold tests after r230054. llvm-svn: 230098
This commit is contained in:
parent
0b1b387441
commit
85d8509267
|
@ -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