Add variable to capture arguments that should be passed to the user program
authorChris Lattner <sabre@nondot.org>
Wed, 30 Jul 2003 17:36:07 +0000 (17:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Jul 2003 17:36:07 +0000 (17:36 +0000)
This is unused so far.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7422 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/bugpoint.cpp

index dda8c5122b48111fee50fbe61fde956dc6d53a90..95350f4ffe5046fb2d7e408e2e3b6696ce7c7239 100644 (file)
@@ -20,8 +20,11 @@ InputFilenames(cl::Positional, cl::OneOrMore,
 static cl::list<const PassInfo*, bool, PassNameParser>
 PassList(cl::desc("Passes available:"), cl::ZeroOrMore);
 
-//cl::list<std::string>
-//InputArgv(cl::ConsumeAfter, cl::desc("<program arguments>..."));
+// 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);