diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-07-23 01:30:49 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-07-23 01:30:49 +0000 |
commit | eed80e23751ecc50c1fa5604f67be4b826d5b417 (patch) | |
tree | 6bc448441067a57c159e09397a613a1b9dd9b04c /tools/bugpoint/Miscompilation.cpp | |
parent | 9accb24c897879f8e0f3f8ecf3389261a7924bc6 (diff) | |
download | llvm-eed80e23751ecc50c1fa5604f67be4b826d5b417.tar.gz llvm-eed80e23751ecc50c1fa5604f67be4b826d5b417.tar.bz2 llvm-eed80e23751ecc50c1fa5604f67be4b826d5b417.tar.xz |
* Convert "\n" -> '\n'
* Print out another '\n' after printing out program execution status
* Make sure code wraps at 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 2eedd60dd5..0b7711b611 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -174,7 +174,7 @@ static bool TestMergedProgram(BugDriver &BD, Module *M1, Module *M2, if (!DeleteInputs) M1 = CloneModule(M1); if (LinkModules(M1, M2, &ErrorMsg)) { std::cerr << BD.getToolName() << ": Error linking modules together:" - << ErrorMsg << "\n"; + << ErrorMsg << '\n'; exit(1); } if (DeleteInputs) delete M2; // We are done with this module... @@ -203,7 +203,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*>&Funcs){ << " run through the pass" << (BD.getPassesToRun().size() == 1 ? "" : "es") << ":"; PrintFunctionList(Funcs); - std::cout << "\n"; + std::cout << '\n'; // Split the module into the two halves of the program we want. Module *ToNotOptimize = CloneModule(BD.getProgram()); @@ -296,7 +296,7 @@ static bool ExtractLoops(BugDriver &BD, std::string ErrorMsg; if (LinkModules(ToNotOptimize, ToOptimizeLoopExtracted, &ErrorMsg)) { std::cerr << BD.getToolName() << ": Error linking modules together:" - << ErrorMsg << "\n"; + << ErrorMsg << '\n'; exit(1); } @@ -359,7 +359,7 @@ bool ReduceMiscompiledBlocks::TestFuncs(const std::vector<BasicBlock*> &BBs) { } else { std::cout << "blocks are extracted."; } - std::cout << "\n"; + std::cout << '\n'; // Split the module into the two halves of the program we want. Module *ToNotOptimize = CloneModule(BD.getProgram()); @@ -426,7 +426,7 @@ static bool ExtractBlocks(BugDriver &BD, std::string ErrorMsg; if (LinkModules(ProgClone, Extracted, &ErrorMsg)) { std::cerr << BD.getToolName() << ": Error linking modules together:" - << ErrorMsg << "\n"; + << ErrorMsg << '\n'; exit(1); } @@ -473,7 +473,7 @@ DebugAMiscompilation(BugDriver &BD, << (MiscompiledFunctions.size() == 1 ? " is" : "s are") << " being miscompiled: "; PrintFunctionList(MiscompiledFunctions); - std::cout << "\n"; + std::cout << '\n'; // See if we can rip any loops out of the miscompiled functions and still // trigger the problem. @@ -493,7 +493,7 @@ DebugAMiscompilation(BugDriver &BD, << (MiscompiledFunctions.size() == 1 ? " is" : "s are") << " being miscompiled: "; PrintFunctionList(MiscompiledFunctions); - std::cout << "\n"; + std::cout << '\n'; } if (ExtractBlocks(BD, TestFn, MiscompiledFunctions)) { @@ -512,7 +512,7 @@ DebugAMiscompilation(BugDriver &BD, << (MiscompiledFunctions.size() == 1 ? " is" : "s are") << " being miscompiled: "; PrintFunctionList(MiscompiledFunctions); - std::cout << "\n"; + std::cout << '\n'; } return MiscompiledFunctions; @@ -552,7 +552,7 @@ bool BugDriver::debugMiscompilation() { std::cout << "\n*** Found miscompiling pass" << (getPassesToRun().size() == 1 ? "" : "es") << ": " - << getPassesString(getPassesToRun()) << "\n"; + << getPassesString(getPassesToRun()) << '\n'; EmitProgressBytecode("passinput"); std::vector<Function*> MiscompiledFunctions = @@ -807,7 +807,7 @@ bool BugDriver::debugCodeGenerator() { } for (unsigned i=0, e = InputArgv.size(); i != e; ++i) std::cout << " " << InputArgv[i]; - std::cout << "\n"; + std::cout << '\n'; std::cout << "The shared object was created with:\n llc -march=c " << SafeModuleBC << " -o temporary.c\n" << " gcc -xc temporary.c -O2 -o " << SharedObject |