[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Dec 6 20:44:01 PST 2003
Changes in directory llvm/tools/bugpoint:
Miscompilation.cpp updated: 1.24 -> 1.25
---
Log message:
Bugpoint had appalingly bad grammar. Fix some of it.
---
Diffs of the changes: (+8 -4)
Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.24 llvm/tools/bugpoint/Miscompilation.cpp:1.25
--- llvm/tools/bugpoint/Miscompilation.cpp:1.24 Tue Nov 11 16:41:34 2003
+++ llvm/tools/bugpoint/Miscompilation.cpp Sat Dec 6 20:43:09 2003
@@ -144,8 +144,10 @@
// Test to see if the function is misoptimized if we ONLY run it on the
// functions listed in Funcs.
if (!EmitBytecode) {
- std::cout << "Checking to see if the program is misoptimized when these "
- << "functions are run\nthrough the passes: ";
+ std::cout << "Checking to see if the program is misoptimized when "
+ << (Funcs.size()==1 ? "this function is" : "these functions are")
+ << " run through the pass"
+ << (BD.PassesToRun.size() == 1 ? "" : "es") << ": ";
BD.PrintFunctionList(Funcs);
std::cout << "\n";
} else {
@@ -267,7 +269,7 @@
delete BD.Program; // Delete the hacked up program
BD.Program = OldProgram; // Restore the original
- std::cout << (Broken ? "nope.\n" : "yup.\n");
+ std::cout << (Broken ? " nope.\n" : " yup.\n");
return Broken;
}
@@ -301,7 +303,9 @@
// Do the reduction...
ReduceMiscompilingFunctions(*this).reduceList(MiscompiledFunctions);
- std::cout << "\n*** The following functions are being miscompiled: ";
+ std::cout << "\n*** The following function"
+ << (MiscompiledFunctions.size() == 1 ? " is" : "s are")
+ << " being miscompiled: ";
PrintFunctionList(MiscompiledFunctions);
std::cout << "\n";
More information about the llvm-commits
mailing list