[llvm] r293086 - DebugInfo: remove unused parameter from function. NFC.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 12:58:08 PST 2017


Author: tnorthover
Date: Wed Jan 25 14:58:07 2017
New Revision: 293086

URL: http://llvm.org/viewvc/llvm-project?rev=293086&view=rev
Log:
DebugInfo: remove unused parameter from function. NFC.

I think it's a hold-over from some previous iteration, but it's never
set to true in LLVM as it exists now.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.cpp?rev=293086&r1=293085&r2=293086&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.cpp Wed Jan 25 14:58:07 2017
@@ -32,7 +32,7 @@ void DwarfExpression::AddReg(int DwarfRe
   }
 }
 
-void DwarfExpression::AddRegIndirect(int DwarfReg, int Offset, bool Deref) {
+void DwarfExpression::AddRegIndirect(int DwarfReg, int Offset) {
   assert(DwarfReg >= 0 && "invalid negative dwarf register number");
   if (DwarfReg < 32) {
     EmitOp(dwarf::DW_OP_breg0 + DwarfReg);
@@ -41,8 +41,6 @@ void DwarfExpression::AddRegIndirect(int
     EmitUnsigned(DwarfReg);
   }
   EmitSigned(Offset);
-  if (Deref)
-    EmitOp(dwarf::DW_OP_deref);
 }
 
 void DwarfExpression::AddOpPiece(unsigned SizeInBits, unsigned OffsetInBits) {

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.h?rev=293086&r1=293085&r2=293086&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfExpression.h Wed Jan 25 14:58:07 2017
@@ -119,7 +119,7 @@ public:
   /// Emit a dwarf register operation.
   void AddReg(int DwarfReg, const char *Comment = nullptr);
   /// Emit an (double-)indirect dwarf register operation.
-  void AddRegIndirect(int DwarfReg, int Offset, bool Deref = false);
+  void AddRegIndirect(int DwarfReg, int Offset);
 
   /// Emit a DW_OP_piece or DW_OP_bit_piece operation for a variable fragment.
   /// \param OffsetInBits    This is an optional offset into the location that




More information about the llvm-commits mailing list