summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-10-24 20:26:17 +0000
committerAdrian Prantl <aprantl@apple.com>2017-10-24 20:26:17 +0000
commitd20442d3830c8d668f035d77e766dee843e8107e (patch)
tree40d93a21221e87c51ff72ec3928eb4e48582774c /llvm/lib/Transforms/Utils/Local.cpp
parentdabd5be42dd78636babfbd515c33c67a994d52aa (diff)
downloadbcm5719-llvm-d20442d3830c8d668f035d77e766dee843e8107e.tar.gz
bcm5719-llvm-d20442d3830c8d668f035d77e766dee843e8107e.zip
Delete unused instantiations of DIBuilder. NFC
llvm-svn: 316494
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index bf382191c6c..fd3367710f3 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1381,7 +1381,6 @@ void llvm::salvageDebugInfo(Instruction &I) {
// 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 &I) {
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));
OpenPOWER on IntegriCloud