diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-30 17:59:23 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-30 17:59:23 +0000 |
commit | 800e6e216abaf93e7cc297af0e1e78f24b2d6143 (patch) | |
tree | c20c10b41fb56cccfbf75851e83ac8312bb68388 /tools | |
parent | 7835c852270da3da66d79d4d18cefda3c8e3019c (diff) | |
download | external_llvm-800e6e216abaf93e7cc297af0e1e78f24b2d6143.zip external_llvm-800e6e216abaf93e7cc297af0e1e78f24b2d6143.tar.gz external_llvm-800e6e216abaf93e7cc297af0e1e78f24b2d6143.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 8 | ||||
-rw-r--r-- | tools/bugpoint/bugpoint.cpp | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index e305a92..0c4b668 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<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. diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp index 95350f4..ea44088 100644 --- a/tools/bugpoint/bugpoint.cpp +++ b/tools/bugpoint/bugpoint.cpp @@ -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); |