M1 = CloneModule(M1);
M2 = CloneModule(M2);
}
- if (Linker::LinkModules(M1, M2, Linker::DestroySource))
+ if (Linker::LinkModules(M1, M2))
exit(1);
delete M2; // We are done with this module.
F->getFunctionType()));
}
- if (Linker::LinkModules(ToNotOptimize, ToOptimizeLoopExtracted,
- Linker::DestroySource))
+ if (Linker::LinkModules(ToNotOptimize, ToOptimizeLoopExtracted))
exit(1);
MiscompiledFunctions.clear();
// extraction both didn't break the program, and didn't mask the problem.
// Replace the current program with the loop extracted version, and try to
// extract another loop.
- if (Linker::LinkModules(ToNotOptimize, ToOptimizeLoopExtracted,
- Linker::DestroySource))
+ if (Linker::LinkModules(ToNotOptimize, ToOptimizeLoopExtracted))
exit(1);
delete ToOptimizeLoopExtracted;
MisCompFunctions.push_back(std::make_pair(I->getName(),
I->getFunctionType()));
- if (Linker::LinkModules(ProgClone, Extracted.get(), Linker::DestroySource))
+ if (Linker::LinkModules(ProgClone, Extracted.get()))
exit(1);
// Set the new program and delete the old one.