[llvm] r316494 - Delete unused instantiations of DIBuilder. NFC
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 13:26:18 PDT 2017
Author: adrian
Date: Tue Oct 24 13:26:17 2017
New Revision: 316494
URL: http://llvm.org/viewvc/llvm-project?rev=316494&view=rev
Log:
Delete unused instantiations of DIBuilder. NFC
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=316494&r1=316493&r2=316494&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Tue Oct 24 13:26:17 2017
@@ -1381,7 +1381,6 @@ void llvm::salvageDebugInfo(Instruction
// need to mark the expression with a DW_OP_stack_value.
if (GEP->accumulateConstantOffset(M.getDataLayout(), Offset)) {
auto *DIExpr = DVI->getExpression();
- DIBuilder DIB(M, /*AllowUnresolved*/ false);
// GEP offsets are i32 and thus always fit into an int64_t.
DIExpr = DIExpression::prepend(DIExpr, DIExpression::NoDeref,
Offset.getSExtValue(),
@@ -1396,7 +1395,6 @@ void llvm::salvageDebugInfo(Instruction
for (auto *DVI : DbgValues) {
// Rewrite the load into DW_OP_deref.
auto *DIExpr = DVI->getExpression();
- DIBuilder DIB(M, /*AllowUnresolved*/ false);
DIExpr = DIExpression::prepend(DIExpr, DIExpression::WithDeref);
DVI->setOperand(0, MDWrap(I.getOperand(0)));
DVI->setOperand(2, MetadataAsValue::get(I.getContext(), DIExpr));
More information about the llvm-commits
mailing list