diff options
author | Andrew Trick <atrick@apple.com> | 2013-03-06 19:04:56 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-03-06 19:04:56 +0000 |
commit | 76c25dc2bf23b0c710d896ca61f236fe5b18ee08 (patch) | |
tree | e0cb7ee57de6aa3192d8cfb9942afaaccf566c58 | |
parent | 2faa0f37c2b2a7086f494c1d36bd07e0cb0042c5 (diff) | |
download | external_llvm-76c25dc2bf23b0c710d896ca61f236fe5b18ee08.zip external_llvm-76c25dc2bf23b0c710d896ca61f236fe5b18ee08.tar.gz external_llvm-76c25dc2bf23b0c710d896ca61f236fe5b18ee08.tar.bz2 |
Generalize my previous fix for -print-options.
Always print options that differ from their implicit default. At least
for simple option types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176572 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/CommandLine.h | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/PassManagerBuilder.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index bf7823e..2e84d7b 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -1090,7 +1090,7 @@ public: // Make sure we initialize the value with the default constructor for the // type. - opt_storage() : Value(DataType()) {} + opt_storage() : Value(DataType()), Default(DataType()) {} template<class T> void setValue(const T &V, bool initial = false) { diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 8c0ab78..47b2b51 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -29,7 +29,7 @@ using namespace llvm; static cl::opt<bool> -RunLoopVectorization("vectorize-loops", cl::init(false), +RunLoopVectorization("vectorize-loops", cl::desc("Run the Loop vectorization passes")); static cl::opt<bool> |