Skip to content

Commit

Permalink
[DwarfDebug] Remove unused argument (NFC)
Browse files Browse the repository at this point in the history
Remove unused ByteStreamer argument from function emitDebugLocValue.

Patch by Nikola Prica.

Differential Revision: https://reviews.llvm.org/D48590

llvm-svn: 335811
  • Loading branch information
petar-jovanovic committed Jun 28, 2018
1 parent 1a330a1 commit d175aeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Expand Up @@ -1688,7 +1688,6 @@ void DwarfDebug::emitDebugLocEntry(ByteStreamer &Streamer,
}

static void emitDebugLocValue(const AsmPrinter &AP, const DIBasicType *BT,
ByteStreamer &Streamer,
const DebugLocEntry::Value &Value,
DwarfExpression &DwarfExpr) {
auto *DIExpr = Value.getExpression();
Expand Down Expand Up @@ -1733,11 +1732,11 @@ void DebugLocEntry::finalize(const AsmPrinter &AP,
"fragments are expected to be sorted");

for (auto Fragment : Values)
emitDebugLocValue(AP, BT, Streamer, Fragment, DwarfExpr);
emitDebugLocValue(AP, BT, Fragment, DwarfExpr);

} else {
assert(Values.size() == 1 && "only fragments may have >1 value");
emitDebugLocValue(AP, BT, Streamer, Value, DwarfExpr);
emitDebugLocValue(AP, BT, Value, DwarfExpr);
}
DwarfExpr.finalize();
}
Expand Down

0 comments on commit d175aeb

Please sign in to comment.