OSDN Git Service

Make -o a prefix option.
authorMikhail Glushenkov <foldr@codedgers.com>
Wed, 14 Jan 2009 02:02:16 +0000 (02:02 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Wed, 14 Jan 2009 02:02:16 +0000 (02:02 +0000)
Both 'llvmc -o file' and 'llvmc -ofile' should work.

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

tools/llvmc/driver/llvmc.cpp

index b295c63..059e840 100644 (file)
@@ -37,7 +37,7 @@ using namespace llvmc;
 cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input file>"),
                                      cl::ZeroOrMore);
 cl::opt<std::string> OutputFilename("o", cl::desc("Output file name"),
-                                    cl::value_desc("file"));
+                                    cl::value_desc("file"), cl::Prefix);
 cl::list<std::string> Languages("x",
           cl::desc("Specify the language of the following input files"),
           cl::ZeroOrMore);