forked from OSchip/llvm-project
DwarfDebug::getExistingAbstractVariable: constify an existing reference parameter that didn't need to be mutated.
llvm-svn: 210944
This commit is contained in:
parent
eb1a27239c
commit
be7c677008
|
@ -1066,7 +1066,7 @@ void DwarfDebug::endModule() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find abstract variable, if any, associated with Var.
|
// Find abstract variable, if any, associated with Var.
|
||||||
DbgVariable *DwarfDebug::getExistingAbstractVariable(DIVariable &DV,
|
DbgVariable *DwarfDebug::getExistingAbstractVariable(const DIVariable &DV,
|
||||||
DIVariable &Cleansed) {
|
DIVariable &Cleansed) {
|
||||||
LLVMContext &Ctx = DV->getContext();
|
LLVMContext &Ctx = DV->getContext();
|
||||||
// More then one inlined variable corresponds to one abstract variable.
|
// More then one inlined variable corresponds to one abstract variable.
|
||||||
|
|
|
@ -344,7 +344,7 @@ class DwarfDebug : public AsmPrinterHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Find abstract variable associated with Var.
|
/// \brief Find abstract variable associated with Var.
|
||||||
DbgVariable *getExistingAbstractVariable(DIVariable &DV,
|
DbgVariable *getExistingAbstractVariable(const DIVariable &DV,
|
||||||
DIVariable &Cleansed);
|
DIVariable &Cleansed);
|
||||||
DbgVariable *createAbstractVariable(DIVariable &DV, LexicalScope *Scope);
|
DbgVariable *createAbstractVariable(DIVariable &DV, LexicalScope *Scope);
|
||||||
DbgVariable *getOrCreateAbstractVariable(DIVariable &Var,
|
DbgVariable *getOrCreateAbstractVariable(DIVariable &Var,
|
||||||
|
|
Loading…
Reference in New Issue