summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-07 21:05:13 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-07 21:05:13 +0000
commit11c6592daf6512bcafe4338b586acf4c539502ca (patch)
treed247abfca9833518b428b02b05e2011f1936c458 /tools
parent0bd75bb92d25591b89f5dee08fb343709d792d5b (diff)
downloadllvm-11c6592daf6512bcafe4338b586acf4c539502ca.tar.gz
llvm-11c6592daf6512bcafe4338b586acf4c539502ca.tar.bz2
llvm-11c6592daf6512bcafe4338b586acf4c539502ca.tar.xz
Fixed path for SystemUtils.h and a few code cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/CodeGeneratorBug.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp
index be5f3ea77c..da990c7f72 100644
--- a/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/tools/bugpoint/CodeGeneratorBug.cpp
@@ -5,7 +5,7 @@
//===----------------------------------------------------------------------===//
#include "BugDriver.h"
-#include "SystemUtils.h"
+#include "Support/SystemUtils.h"
#include "ListReducer.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
@@ -236,17 +236,15 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
int Result = BD.diffProgram(TestModuleBC, SharedObject, false);
if (Result)
- std::cerr << ": Still failing!\n";
+ std::cerr << ": still failing!\n";
else
std::cerr << ": didn't fail.\n";
-
if (KeepFiles) {
std::cout << "You can reproduce the problem with the command line: \n";
if (BD.isExecutingJIT()) {
std::cout << " lli -load " << SharedObject << " " << TestModuleBC;
} else {
- //<< (BD.isExecutingJIT() ? "lli" : "llc")
std::cout << " llc " << TestModuleBC << " -o " << TestModuleBC << ".s\n";
std::cout << " gcc " << SharedObject << " " << TestModuleBC
<< ".s -o " << TestModuleBC << ".exe\n";
@@ -255,8 +253,8 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
for (unsigned i=0, e = InputArgv.size(); i != e; ++i)
std::cout << " " << InputArgv[i];
std::cout << "\n";
- std::cout << "The shared object " << SharedObject << " was created from "
- << SafeModuleBC << ", using `dis -c'.\n";
+ std::cout << "The shared object was created with:\ndis -c " << SafeModuleBC
+ << "-o " << SharedObject << "\n";
} else {
removeFile(TestModuleBC);
removeFile(SafeModuleBC);
@@ -350,7 +348,7 @@ bool BugDriver::debugCodeGenerator() {
Function *oldMain = Program->getNamedFunction("main");
assert(oldMain && "`main' function not found in program!");
// Rename it
- oldMain->setName("old_main");
+ oldMain->setName("llvm_old_main");
// Create a NEW `main' function with same type
Function *newMain = new Function(oldMain->getFunctionType(),
GlobalValue::ExternalLinkage,