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
This commit is contained in:
Andrew Trick 2013-03-06 19:04:56 +00:00
parent 2faa0f37c2
commit 76c25dc2bf
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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>