projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvmc: make -x work with unknown suffixes.
[oota-llvm.git]
/
lib
/
CompilerDriver
/
BuiltinOptions.cpp
diff --git
a/lib/CompilerDriver/BuiltinOptions.cpp
b/lib/CompilerDriver/BuiltinOptions.cpp
index d90c50d67d92eadff585b8f730aa49bda80129c2..38442038d73853cf60b44d263823cc4cd86e2911 100644
(file)
--- a/
lib/CompilerDriver/BuiltinOptions.cpp
+++ b/
lib/CompilerDriver/BuiltinOptions.cpp
@@
-19,7
+19,7
@@
namespace cl = llvm::cl;
namespace cl = llvm::cl;
-// External linkage here is intentional.
+namespace llvmc {
cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input file>"),
cl::ZeroOrMore);
cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input file>"),
cl::ZeroOrMore);
@@
-30,8
+30,10
@@
cl::opt<std::string> TempDirname("temp-dir", cl::desc("Temp dir name"),
cl::list<std::string> Languages("x",
cl::desc("Specify the language of the following input files"),
cl::ZeroOrMore);
cl::list<std::string> Languages("x",
cl::desc("Specify the language of the following input files"),
cl::ZeroOrMore);
+
cl::opt<bool> DryRun("dry-run",
cl::desc("Only pretend to run commands"));
cl::opt<bool> DryRun("dry-run",
cl::desc("Only pretend to run commands"));
+cl::opt<bool> Time("time", cl::desc("Time individual commands"));
cl::opt<bool> VerboseMode("v",
cl::desc("Enable verbose mode"));
cl::opt<bool> VerboseMode("v",
cl::desc("Enable verbose mode"));
@@
-55,3
+57,5
@@
cl::opt<SaveTempsEnum::Values> SaveTemps
clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"),
clEnumValEnd),
cl::ValueOptional);
clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"),
clEnumValEnd),
cl::ValueOptional);
+
+} // End namespace llvmc.