OSDN Git Service

Always verify dominfo if expensive checking is enabled.
authorDuncan Sands <baldrick@free.fr>
Fri, 22 May 2009 08:52:53 +0000 (08:52 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 22 May 2009 08:52:53 +0000 (08:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassManager.cpp

index 2e9fa53..4799915 100644 (file)
@@ -43,7 +43,12 @@ enum PassDebugLevel {
   None, Arguments, Structure, Executions, Details
 };
 
+// Always verify dominfo if expensive checking is enabled.
+#ifdef XDEBUG
+bool VerifyDomInfo = true;
+#else
 bool VerifyDomInfo = false;
+#endif
 static cl::opt<bool,true>
 VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo),
                cl::desc("Verify dominator info (time consuming)"));