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 /include/llvm/Support | |
parent | 2faa0f37c2b2a7086f494c1d36bd07e0cb0042c5 (diff) |
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
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index bf7823ed27..2e84d7b349 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) { |