diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-15 16:27:43 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-15 16:27:43 +0000 |
commit | 52eaffee030e560d72874cd16b3a389c78bc66c7 (patch) | |
tree | 759094a1ce682c3a5a7d4573904685fa387be462 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 6ef5f284d6f89e77191d3b72e3d4893efe10f9b1 (diff) | |
download | bcm5719-llvm-52eaffee030e560d72874cd16b3a389c78bc66c7.tar.gz bcm5719-llvm-52eaffee030e560d72874cd16b3a389c78bc66c7.zip |
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>
llvm-svn: 206301
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index f0b3cdc50a4..b75c62a4223 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -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)) { |