constant pool member's name.
This is intended to address Bug 333.
Also, fix an anachronistic usage of "M" as a parameter of type Function *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13357
91177308-0d34-0410-b5e6-
96231b3b80d8
case MachineOperand::MO_ConstantPoolIndex:
{
- toAsm << ".CPI_" << currFunction->getName()
+ toAsm << ".CPI_" << getID(currFunction)
<< "_" << mop.getConstantPoolIndex();
break;
}
if (const BasicBlock *BB = dyn_cast<BasicBlock>(Val))
toAsm << getID(BB);
- else if (const Function *M = dyn_cast<Function>(Val))
- toAsm << getID(M);
+ else if (const Function *F = dyn_cast<Function>(Val))
+ toAsm << getID(F);
else if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Val))
toAsm << getID(GV);
else if (const Constant *CV = dyn_cast<Constant>(Val))