r206301 - verify-di: Call debug info verifier from clang

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Apr 15 09:27:44 PDT 2014


Author: dexonsmith
Date: Tue Apr 15 11:27:43 2014
New Revision: 206301

URL: http://llvm.org/viewvc/llvm-project?rev=206301&view=rev
Log:
verify-di: Call debug info verifier from clang

This is paired with a patch to LLVM that creates a separate pass for
verifying debug info.

<rdar://problem/15500563>

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=206301&r1=206300&r2=206301&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue Apr 15 11:27:43 2014
@@ -334,6 +334,8 @@ void EmitAssemblyHelper::CreatePasses()
 
   // Set up the per-module pass manager.
   PassManager *MPM = getPerModulePasses();
+  if (CodeGenOpts.VerifyModule)
+    MPM->add(createDebugInfoVerifierPass());
 
   if (!CodeGenOpts.DisableGCov &&
       (CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes)) {





More information about the cfe-commits mailing list