Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.
authorMisha Brukman <brukman+llvm@gmail.com>
Wed, 30 Jul 2003 17:59:23 +0000 (17:59 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Wed, 30 Jul 2003 17:59:23 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7427 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExecutionDriver.cpp
tools/bugpoint/bugpoint.cpp

index e305a92f5f715bfc917e9a445ac153baf1ea97e0..0c4b6687c7c6586fead3a7a38168883bddc049c0 100644 (file)
@@ -40,11 +40,15 @@ namespace {
   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
 /// complexity behind a simple interface.
index 95350f4ffe5046fb2d7e408e2e3b6696ce7c7239..ea4408894735e92f57dde8440d880e101480221d 100644 (file)
@@ -20,12 +20,6 @@ InputFilenames(cl::Positional, cl::OneOrMore,
 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);