DwarfDebug::getExistingAbstractVariable: constify an existing reference parameter...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Jun 2014 22:29:31 +0000 (22:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Jun 2014 22:29:31 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210944 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index 1284d1c9220a68fd43fb85ac0d6b3b427360b37b..1eb88b9178d48e4c6e59c1e6dcb620ce916de1d8 100644 (file)
@@ -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.
index fcc9a7c80dc33d5b70bd3cbff27688da88f80cda..88b8a674b3e19c6a25a693800fb7d1c93b7dab56 100644 (file)
@@ -344,7 +344,7 @@ class DwarfDebug : public AsmPrinterHandler {
   }
 
   /// \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,