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 | fcb37243f9906b1f2ea4c1aeff0a3438288df41f (patch) | |
| tree | 0782d2826e34815703caad3d29716de67c398b5a | |
| parent | a7699084b983b4bcb4f58f022fa7a26fe3e3b922 (diff) | |
| download | bcm5719-llvm-fcb37243f9906b1f2ea4c1aeff0a3438288df41f.tar.gz bcm5719-llvm-fcb37243f9906b1f2ea4c1aeff0a3438288df41f.zip | |
Generalize my previous fix for -print-options.
Always print options that differ from their implicit default. At least
for simple option types.
llvm-svn: 176572
| -rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/PassManagerBuilder.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index bf7823ed279..2e84d7b349d 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/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/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp index 8c0ab78ba4b..47b2b51899c 100644 --- a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/llvm/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> |

