bool LinkInModule(
Module* Src, ///< Module linked into \p Dest
std::string* ErrorMsg = 0 /// Error/diagnostic string
- ) { return LinkModules(Composite, Src, ErrorMsg ); }
+ ) {
+ return LinkModules(Composite, Src, ErrorMsg );
+ }
/// This is the heart of the linker. This method will take unconditional
/// control of the \p Src module and link it into the \p Dest module. The
// See if we can rip any loops out of the miscompiled functions and still
// trigger the problem.
- if (!DisableLoopExtraction)
- if (!BugpointIsInterrupted &&
- ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
+ if (!BugpointIsInterrupted && !DisableLoopExtraction &&
+ ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
// Okay, we extracted some loops and the problem still appears. See if we
// can eliminate some of the created functions from being candidates.
for (unsigned index = 0; index < LinkItems.size(); index++)
if (LinkItems[index].first != "crtend") {
if (LinkItems[index].second) {
- std::string lib_name = "-l" + LinkItems[index].first;
- args.push_back(lib_name.c_str());
+ std::string lib_name = "-l" + LinkItems[index].first;
+ args.push_back(lib_name.c_str());
} else
- args.push_back(LinkItems[index].first.c_str());
+ args.push_back(LinkItems[index].first.c_str());
}
args.push_back(0);