[llvm-commits] CVS: llvm/tools/bugpoint/CodeGeneratorBug.cpp ExecutionDriver.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Aug 28 17:15:01 PDT 2003


Changes in directory llvm/tools/bugpoint:

CodeGeneratorBug.cpp updated: 1.17 -> 1.18
ExecutionDriver.cpp updated: 1.19 -> 1.20

---
Log message:

Renaming `dis' -> `llvm-dis'.


---
Diffs of the changes:

Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.17 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.18
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.17	Sun Aug 17 18:38:53 2003
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp	Thu Aug 28 17:14:16 2003
@@ -253,7 +253,7 @@
     for (unsigned i=0, e = InputArgv.size(); i != e; ++i)
       std::cout << " " << InputArgv[i];
     std::cout << "\n";
-    std::cout << "The shared object was created with:\n  dis -c "
+    std::cout << "The shared object was created with:\n  llvm-dis -c "
               << SafeModuleBC << " -o temporary.c\n"
               << "  gcc -xc temporary.c -O2 -o " << SharedObject
 #if defined(sparc) || defined(__sparc__) || defined(__sparcv9)


Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.19 llvm/tools/bugpoint/ExecutionDriver.cpp:1.20
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.19	Mon Aug 18 17:32:48 2003
+++ llvm/tools/bugpoint/ExecutionDriver.cpp	Thu Aug 28 17:14:16 2003
@@ -394,7 +394,7 @@
 // CBE Implementation of AbstractIntepreter interface
 //
 class CBE : public AbstractInterpreter {
-  std::string DISPath;          // The path to the LLVM 'dis' executable
+  std::string DISPath;          // The path to the `llvm-dis' executable
   GCC *gcc;
 public:
   CBE(const std::string &disPath, GCC *Gcc) : DISPath(disPath), gcc(Gcc) { }
@@ -402,13 +402,14 @@
 
   // CBE create method - Try to find the 'dis' executable
   static CBE *create(BugDriver *BD, std::string &Message) {
-    std::string DISPath = FindExecutable("dis", BD->getToolName());
+    std::string DISPath = FindExecutable("llvm-dis", BD->getToolName());
     if (DISPath.empty()) {
-      Message = "Cannot find `dis' in bugpoint executable directory or PATH!\n";
+      Message = 
+        "Cannot find `llvm-dis' in bugpoint executable directory or PATH!\n";
       return 0;
     }
 
-    Message = "Found dis: " + DISPath + "\n";
+    Message = "Found llvm-dis: " + DISPath + "\n";
 
     GCC *gcc = GCC::create(BD, Message);
     if (!gcc) {
@@ -445,7 +446,7 @@
   if (RunProgramWithTimeout(DISPath, DisArgs, "/dev/null", "/dev/null",
                             "/dev/null")) {                            
     // If dis failed on the bytecode, print error...
-    std::cerr << "bugpoint error: `dis -c' failed!\n";
+    std::cerr << "bugpoint error: `llvm-dis -c' failed!\n";
     return 1;
   }
 
@@ -458,7 +459,7 @@
                         const std::string &SharedLib) {
   std::string OutputCFile;
   if (OutputC(Bytecode, OutputCFile)) {
-    std::cerr << "Could not generate C code with `dis', exiting.\n";
+    std::cerr << "Could not generate C code with `llvm-dis', exiting.\n";
     exit(1);
   }
 





More information about the llvm-commits mailing list