[PATCH] D48590: [DwarfDebug] Remove unused argument (NFC)

Nikola Prica via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 26 03:00:31 PDT 2018


NikolaPrica created this revision.
NikolaPrica added reviewers: aprantl, vsk.
NikolaPrica added a project: debug-info.
Herald added a subscriber: JDevlieghere.

Remove unused  //ByteStreamer// argument from function //emitDebugLocValue//.


https://reviews.llvm.org/D48590

Files:
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp


Index: lib/CodeGen/AsmPrinter/DwarfDebug.cpp
===================================================================
--- lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1688,7 +1688,6 @@
 }
 
 static void emitDebugLocValue(const AsmPrinter &AP, const DIBasicType *BT,
-                              ByteStreamer &Streamer,
                               const DebugLocEntry::Value &Value,
                               DwarfExpression &DwarfExpr) {
   auto *DIExpr = Value.getExpression();
@@ -1733,11 +1732,11 @@
            "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();
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48590.152855.patch
Type: text/x-patch
Size: 983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180626/4e4ab433/attachment.bin>


More information about the llvm-commits mailing list