[llvm-commits] CVS: llvm/tools/bugpoint/BugDriver.cpp CrashDebugger.cpp ExecutionDriver.cpp Miscompilation.cpp bugpoint.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Jul 22 18:30:59 PDT 2004
Changes in directory llvm/tools/bugpoint:
BugDriver.cpp updated: 1.34 -> 1.35
CrashDebugger.cpp updated: 1.35 -> 1.36
ExecutionDriver.cpp updated: 1.45 -> 1.46
Miscompilation.cpp updated: 1.50 -> 1.51
bugpoint.cpp updated: 1.17 -> 1.18
---
Log message:
* Convert "\n" -> '\n'
* Print out another '\n' after printing out program execution status
* Make sure code wraps at 80 cols
---
Diffs of the changes: (+21 -20)
Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.34 llvm/tools/bugpoint/BugDriver.cpp:1.35
--- llvm/tools/bugpoint/BugDriver.cpp:1.34 Sun Jul 4 07:20:55 2004
+++ llvm/tools/bugpoint/BugDriver.cpp Thu Jul 22 20:30:49 2004
@@ -79,7 +79,7 @@
<< InputFilename << "'!\n";
}
} catch (const ParseException &E) {
- std::cerr << "bugpoint: " << E.getMessage() << "\n";
+ std::cerr << "bugpoint: " << E.getMessage() << '\n';
Result = 0;
}
return Result;
@@ -107,7 +107,7 @@
std::string ErrorMessage;
if (LinkModules(Program, M.get(), &ErrorMessage)) {
std::cerr << ToolName << ": error linking in '" << Filenames[i] << "': "
- << ErrorMessage << "\n";
+ << ErrorMessage << '\n';
return true;
}
}
@@ -143,7 +143,7 @@
std::cout << "Running the code generator to test for a crash: ";
try {
compileProgram(Program);
- std::cout << "\n";
+ std::cout << '\n';
} catch (ToolExecutionError &TEE) {
std::cout << TEE.what();
return debugCodeGeneratorCrash();
@@ -160,7 +160,7 @@
try {
ReferenceOutputFile = executeProgramWithCBE("bugpoint.reference.out");
CreatedOutput = true;
- std::cout << "Reference output is: " << ReferenceOutputFile << "\n";
+ std::cout << "Reference output is: " << ReferenceOutputFile << '\n';
} catch (ToolExecutionError &TEE) {
std::cerr << TEE.what();
if (Interpreter != cbe) {
Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.35 llvm/tools/bugpoint/CrashDebugger.cpp:1.36
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.35 Tue May 25 03:53:40 2004
+++ llvm/tools/bugpoint/CrashDebugger.cpp Thu Jul 22 20:30:49 2004
@@ -329,7 +329,7 @@
do {
--Simplification;
std::cout << "\n*** Attempting to reduce testcase by deleting instruc"
- << "tions: Simplification Level #" << Simplification << "\n";
+ << "tions: Simplification Level #" << Simplification << '\n';
// Now that we have deleted the functions that are unnecessary for the
// program, try to remove instructions that are not necessary to cause the
@@ -416,7 +416,7 @@
std::cout << "\n*** Found crashing pass"
<< (PassesToRun.size() == 1 ? ": " : "es: ")
- << getPassesString(PassesToRun) << "\n";
+ << getPassesString(PassesToRun) << '\n';
EmitProgressBytecode("passinput");
@@ -425,8 +425,9 @@
static bool TestForCodeGenCrash(BugDriver &BD, Module *M) {
try {
- std::cerr << "\n";
+ std::cerr << '\n';
BD.compileProgram(M);
+ std::cerr << '\n';
return false;
} catch (ToolExecutionError &TEE) {
std::cerr << "<crash>\n";
Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.45 llvm/tools/bugpoint/ExecutionDriver.cpp:1.46
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.45 Wed Jul 21 15:50:33 2004
+++ llvm/tools/bugpoint/ExecutionDriver.cpp Thu Jul 22 20:30:49 2004
@@ -42,7 +42,7 @@
cl::opt<bool>
CheckProgramExitCode("check-exit-code",
- cl::desc("Assume nonzero exit code is failure (default on)"),
+ cl::desc("Assume nonzero exit code is failure (default on)"),
cl::init(true));
cl::opt<std::string>
@@ -279,7 +279,7 @@
bool FilesDifferent = false;
if (DiffFiles(ReferenceOutputFile, Output, &Error)) {
if (!Error.empty()) {
- std::cerr << "While diffing output: " << Error << "\n";
+ std::cerr << "While diffing output: " << Error << '\n';
exit(1);
}
FilesDifferent = true;
Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.50 llvm/tools/bugpoint/Miscompilation.cpp:1.51
--- llvm/tools/bugpoint/Miscompilation.cpp:1.50 Sat Jul 17 19:44:37 2004
+++ llvm/tools/bugpoint/Miscompilation.cpp Thu Jul 22 20:30:49 2004
@@ -174,7 +174,7 @@
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 @@
<< " 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 @@
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 @@
} 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 @@
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 @@
<< (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 @@
<< (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 @@
<< (MiscompiledFunctions.size() == 1 ? " is" : "s are")
<< " being miscompiled: ";
PrintFunctionList(MiscompiledFunctions);
- std::cout << "\n";
+ std::cout << '\n';
}
return MiscompiledFunctions;
@@ -552,7 +552,7 @@
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 @@
}
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
Index: llvm/tools/bugpoint/bugpoint.cpp
diff -u llvm/tools/bugpoint/bugpoint.cpp:1.17 llvm/tools/bugpoint/bugpoint.cpp:1.18
--- llvm/tools/bugpoint/bugpoint.cpp:1.17 Sat Jul 10 20:06:20 2004
+++ llvm/tools/bugpoint/bugpoint.cpp Thu Jul 22 20:30:49 2004
@@ -57,7 +57,7 @@
try {
return D.run();
} catch (ToolExecutionError &TEE) {
- std::cerr << "Tool execution error: " << TEE.what() << "\n";
+ std::cerr << "Tool execution error: " << TEE.what() << '\n';
return 1;
} catch (...) {
std::cerr << "Whoops, an exception leaked out of bugpoint. "
More information about the llvm-commits
mailing list