diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Debugify.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp index ff8a91b..c2dbdc5 100644 --- a/llvm/lib/Transforms/Utils/Debugify.cpp +++ b/llvm/lib/Transforms/Utils/Debugify.cpp @@ -353,7 +353,7 @@ bool llvm::collectDebugInfoMetadata(Module &M, // Cllect dbg.values and dbg.declare. if (DebugifyLevel > Level::Locations) { - auto HandleDbgVariable = [&](auto *DbgVar) { + auto HandleDbgVariable = [&](DbgVariableRecord *DbgVar) { if (!SP) return; // Skip inlined variables. @@ -368,14 +368,8 @@ bool llvm::collectDebugInfoMetadata(Module &M, }; for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) HandleDbgVariable(&DVR); - if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) - HandleDbgVariable(DVI); } - // Skip debug instructions other than dbg.value and dbg.declare. - if (isa<DbgInfoIntrinsic>(&I)) - continue; - LLVM_DEBUG(dbgs() << " Collecting info for inst: " << I << '\n'); DebugInfoBeforePass.InstToDelete.insert({&I, &I}); @@ -597,7 +591,7 @@ bool llvm::checkDebugInfoMetadata(Module &M, // Collect dbg.values and dbg.declares. if (DebugifyLevel > Level::Locations) { - auto HandleDbgVariable = [&](auto *DbgVar) { + auto HandleDbgVariable = [&](DbgVariableRecord *DbgVar) { if (!SP) return; // Skip inlined variables. @@ -612,14 +606,8 @@ bool llvm::checkDebugInfoMetadata(Module &M, }; for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) HandleDbgVariable(&DVR); - if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) - HandleDbgVariable(DVI); } - // Skip debug instructions other than dbg.value and dbg.declare. - if (isa<DbgInfoIntrinsic>(&I)) - continue; - LLVM_DEBUG(dbgs() << " Collecting info for inst: " << I << '\n'); DebugInfoAfterPass.DILocations.insert({&I, hasLoc(I)}); |