From: Misha Brukman Date: Wed, 30 Jul 2003 17:59:23 +0000 (+0000) Subject: Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=800e6e216abaf93e7cc297af0e1e78f24b2d6143;p=oota-llvm.git Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7427 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index e305a92f5f7..0c4b6687c7c 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -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 + InputArgv("args", cl::Positional, cl::desc("..."), + cl::ZeroOrMore); + enum FileType { AsmFile, CFile }; } -extern cl::list 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. diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp index 95350f4ffe5..ea440889473 100644 --- a/tools/bugpoint/bugpoint.cpp +++ b/tools/bugpoint/bugpoint.cpp @@ -20,12 +20,6 @@ InputFilenames(cl::Positional, cl::OneOrMore, static cl::list PassList(cl::desc("Passes available:"), cl::ZeroOrMore); -// Anything specified after the --args option are taken as arguments to the -// program being debugged. -cl::list -InputArgv("args", cl::Positional, cl::desc("..."), - cl::ZeroOrMore); - int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv);