From 8ce24133fdd77a51342dc13a6820cb1cbca50a87 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 25 Apr 2011 23:02:17 +0000 Subject: Rename a method to match what it really does. s/addVariableAddress/addFrameVariableAddress/g llvm-svn: 130170 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 325c3d34a55..7d95c4b83af 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -696,7 +696,8 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) { const TargetRegisterInfo *TRI = Asm->TM.getRegisterInfo(); if (DVInsn->getOperand(1).isImm() && TRI->getFrameRegister(*Asm->MF) == RegOp.getReg()) { - TheCU->addVariableAddress(DV, VariableDie, DVInsn->getOperand(1).getImm()); + TheCU->addFrameVariableAddress(DV, VariableDie, + DVInsn->getOperand(1).getImm()); updated = true; } else updated = TheCU->addRegisterAddress(VariableDie, RegOp); @@ -730,7 +731,7 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) { // .. else use frame index, if available. int FI = 0; if (findVariableFrameIndex(DV, &FI)) - TheCU->addVariableAddress(DV, VariableDie, FI); + TheCU->addFrameVariableAddress(DV, VariableDie, FI); DV->setDIE(VariableDie); return VariableDie; -- cgit v1.2.3