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

Misha Brukman brukman at cs.uiuc.edu
Wed Jul 30 13:00:00 PDT 2003


Changes in directory llvm/tools/bugpoint:

ExecutionDriver.cpp updated: 1.10 -> 1.11
bugpoint.cpp updated: 1.4 -> 1.5

---
Log message:

Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.


---
Diffs of the changes:

Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.10 llvm/tools/bugpoint/ExecutionDriver.cpp:1.11
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.10	Wed Jul 30 12:44:15 2003
+++ llvm/tools/bugpoint/ExecutionDriver.cpp	Wed Jul 30 12:59:23 2003
@@ -40,10 +40,14 @@
   InputFile("input", cl::init("/dev/null"),
             cl::desc("Filename to pipe in as stdin (default: /dev/null)"));
 
+  // Anything specified after the --args option are taken as arguments to the
+  // program being debugged.
+  cl::list<std::string>
+  InputArgv("args", cl::Positional, cl::desc("<program arguments>..."),
+            cl::ZeroOrMore);
+
   enum FileType { AsmFile, CFile };
 }
-
-extern cl::list<std::string> InputArgv;
 
 /// AbstractInterpreter Class - Subclasses of this class are used to execute
 /// LLVM bytecode in a variety of ways.  This abstract interface hides this


Index: llvm/tools/bugpoint/bugpoint.cpp
diff -u llvm/tools/bugpoint/bugpoint.cpp:1.4 llvm/tools/bugpoint/bugpoint.cpp:1.5
--- llvm/tools/bugpoint/bugpoint.cpp:1.4	Wed Jul 30 12:36:07 2003
+++ llvm/tools/bugpoint/bugpoint.cpp	Wed Jul 30 12:59:23 2003
@@ -20,12 +20,6 @@
 static cl::list<const PassInfo*, bool, PassNameParser>
 PassList(cl::desc("Passes available:"), cl::ZeroOrMore);
 
-// Anything specified after the --args option are taken as arguments to the
-// program being debugged.
-cl::list<std::string>
-InputArgv("args", cl::Positional, cl::desc("<program arguments>..."),
-          cl::ZeroOrMore);
-
 int main(int argc, char **argv) {
   cl::ParseCommandLineOptions(argc, argv);
 





More information about the llvm-commits mailing list