[llvm] r210944 - DwarfDebug::getExistingAbstractVariable: constify an existing reference parameter that didn't need to be mutated.

David Blaikie dblaikie at gmail.com
Fri Jun 13 15:29:31 PDT 2014


Author: dblaikie
Date: Fri Jun 13 17:29:31 2014
New Revision: 210944

URL: http://llvm.org/viewvc/llvm-project?rev=210944&view=rev
Log:
DwarfDebug::getExistingAbstractVariable: constify an existing reference parameter that didn't need to be mutated.

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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=210944&r1=210943&r2=210944&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Jun 13 17:29:31 2014
@@ -1066,7 +1066,7 @@ void DwarfDebug::endModule() {
 }
 
 // Find abstract variable, if any, associated with Var.
-DbgVariable *DwarfDebug::getExistingAbstractVariable(DIVariable &DV,
+DbgVariable *DwarfDebug::getExistingAbstractVariable(const DIVariable &DV,
                                                      DIVariable &Cleansed) {
   LLVMContext &Ctx = DV->getContext();
   // More then one inlined variable corresponds to one abstract variable.

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=210944&r1=210943&r2=210944&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Fri Jun 13 17:29:31 2014
@@ -344,7 +344,7 @@ class DwarfDebug : public AsmPrinterHand
   }
 
   /// \brief Find abstract variable associated with Var.
-  DbgVariable *getExistingAbstractVariable(DIVariable &DV,
+  DbgVariable *getExistingAbstractVariable(const DIVariable &DV,
                                            DIVariable &Cleansed);
   DbgVariable *createAbstractVariable(DIVariable &DV, LexicalScope *Scope);
   DbgVariable *getOrCreateAbstractVariable(DIVariable &Var,





More information about the llvm-commits mailing list