[llvm-commits] [llvm] r62211 - /llvm/trunk/tools/llvmc/driver/llvmc.cpp

Mikhail Glushenkov foldr at codedgers.com
Tue Jan 13 18:02:16 PST 2009


Author: foldr
Date: Tue Jan 13 20:02:16 2009
New Revision: 62211

URL: http://llvm.org/viewvc/llvm-project?rev=62211&view=rev
Log:
Make -o a prefix option.

Both 'llvmc -o file' and 'llvmc -ofile' should work.

Modified:
    llvm/trunk/tools/llvmc/driver/llvmc.cpp

Modified: llvm/trunk/tools/llvmc/driver/llvmc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/driver/llvmc.cpp?rev=62211&r1=62210&r2=62211&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc/driver/llvmc.cpp (original)
+++ llvm/trunk/tools/llvmc/driver/llvmc.cpp Tue Jan 13 20:02:16 2009
@@ -37,7 +37,7 @@
 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);





More information about the llvm-commits mailing list