Remove a gross usage of environment variables in MachineVerifier, replacing it with...
[oota-llvm.git] / lib / CodeGen / Passes.cpp
index b9dd0f78c81495cbd0271fa902ea2b502c8f11ac..1925f3f9a8c506f7c979662264f19ea72a25016d 100644 (file)
@@ -81,7 +81,9 @@ static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
     cl::desc("Dump garbage collector data"));
 static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden,
     cl::desc("Verify generated machine code"),
-    cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=nullptr));
+    cl::init(false),
+    cl::ZeroOrMore);
+
 static cl::opt<std::string>
 PrintMachineInstrs("print-machineinstrs", cl::ValueOptional,
                    cl::desc("Print machine instrs"),