mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-17 20:29:31 +00:00
Minor style fixes from review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a94a203f34
commit
2803b4cc58
@ -241,7 +241,9 @@ class Linker {
|
|||||||
bool LinkInModule(
|
bool LinkInModule(
|
||||||
Module* Src, ///< Module linked into \p Dest
|
Module* Src, ///< Module linked into \p Dest
|
||||||
std::string* ErrorMsg = 0 /// Error/diagnostic string
|
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
|
/// 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
|
/// control of the \p Src module and link it into the \p Dest module. The
|
||||||
|
@ -518,9 +518,8 @@ DebugAMiscompilation(BugDriver &BD,
|
|||||||
// See if we can rip any loops out of the miscompiled functions and still
|
// See if we can rip any loops out of the miscompiled functions and still
|
||||||
// trigger the problem.
|
// trigger the problem.
|
||||||
|
|
||||||
if (!DisableLoopExtraction)
|
if (!BugpointIsInterrupted && !DisableLoopExtraction &&
|
||||||
if (!BugpointIsInterrupted &&
|
ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
|
||||||
ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
|
|
||||||
// Okay, we extracted some loops and the problem still appears. See if we
|
// Okay, we extracted some loops and the problem still appears. See if we
|
||||||
// can eliminate some of the created functions from being candidates.
|
// can eliminate some of the created functions from being candidates.
|
||||||
|
|
||||||
|
@ -326,10 +326,10 @@ static int GenerateNative(const std::string &OutputFilename,
|
|||||||
for (unsigned index = 0; index < LinkItems.size(); index++)
|
for (unsigned index = 0; index < LinkItems.size(); index++)
|
||||||
if (LinkItems[index].first != "crtend") {
|
if (LinkItems[index].first != "crtend") {
|
||||||
if (LinkItems[index].second) {
|
if (LinkItems[index].second) {
|
||||||
std::string lib_name = "-l" + LinkItems[index].first;
|
std::string lib_name = "-l" + LinkItems[index].first;
|
||||||
args.push_back(lib_name.c_str());
|
args.push_back(lib_name.c_str());
|
||||||
} else
|
} else
|
||||||
args.push_back(LinkItems[index].first.c_str());
|
args.push_back(LinkItems[index].first.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
args.push_back(0);
|
args.push_back(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user