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
|
// Make sure we initialize the value with the default constructor for the
|
||||||
// type.
|
// type.
|
||||||
opt_storage() : Value(DataType()) {}
|
opt_storage() : Value(DataType()), Default(DataType()) {}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void setValue(const T &V, bool initial = false) {
|
void setValue(const T &V, bool initial = false) {
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
RunLoopVectorization("vectorize-loops", cl::init(false),
|
RunLoopVectorization("vectorize-loops",
|
||||||
cl::desc("Run the Loop vectorization passes"));
|
cl::desc("Run the Loop vectorization passes"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
|
|
Loading…
Reference in New Issue