summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-03-06 19:04:56 +0000
committerAndrew Trick <atrick@apple.com>2013-03-06 19:04:56 +0000
commitfcb37243f9906b1f2ea4c1aeff0a3438288df41f (patch)
tree0782d2826e34815703caad3d29716de67c398b5a /llvm/include
parenta7699084b983b4bcb4f58f022fa7a26fe3e3b922 (diff)
downloadbcm5719-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
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
1 files changed, 1 insertions, 1 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) {
OpenPOWER on IntegriCloud