From 76c25dc2bf23b0c710d896ca61f236fe5b18ee08 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Wed, 6 Mar 2013 19:04:56 +0000 Subject: [PATCH] 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 --- include/llvm/Support/CommandLine.h | 2 +- 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 bf7823ed279..2e84d7b349d 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 void setValue(const T &V, bool initial = false) { diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 8c0ab78ba4b..47b2b51899c 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -29,7 +29,7 @@ using namespace llvm; static cl::opt -RunLoopVectorization("vectorize-loops", cl::init(false), +RunLoopVectorization("vectorize-loops", cl::desc("Run the Loop vectorization passes")); static cl::opt