forked from OSchip/llvm-project
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
This commit is contained in:
parent
a7699084b9
commit
fcb37243f9
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue