[llvm] r232505 - Verifier: Set --verify-debug-info=true by default

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Mar 17 10:28:41 PDT 2015

Author: dexonsmith
Date: Tue Mar 17 12:28:41 2015
New Revision: 232505

URL: http://llvm.org/viewvc/llvm-project?rev=232505&view=rev
Verifier: Set --verify-debug-info=true by default

r186634 started verifying debug info, and r194986 disabled it by default
because it was too expensive to run the checks on every function (since
most of the graph was reachable from each function).

r206300 moved the checks to module-level to make it cheaper, but there
was already quite a bit of testcase bitrot (and the verifier would only
print `<badref>`) so I guess no one had time to turn it back on.

This does just that.  Upgrade scripts this past autumn and winter
probably fixed some of the bitrot, and this weekend I fixed the verifier
output (r232275, r232417, r232418) and thusly the remaining failing
testcases (r232290, r232415).

This is part of PR22777.


Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=232505&r1=232504&r2=232505&view=diff
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Mar 17 12:28:41 2015
@@ -78,7 +78,7 @@
 #include <cstdarg>
 using namespace llvm;
-static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(false));
+static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true));
 namespace {
 struct VerifierSupport {

More information about the llvm-commits mailing list