mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Correctly mangle function names when they are used as part of a
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 *. llvm-svn: 13357
This commit is contained in:
parent
ba26360c7e
commit
28d81c4d0d
@ -651,7 +651,7 @@ SparcV9AsmPrinter::printOneOperand(const MachineOperand &mop,
|
||||
|
||||
case MachineOperand::MO_ConstantPoolIndex:
|
||||
{
|
||||
toAsm << ".CPI_" << currFunction->getName()
|
||||
toAsm << ".CPI_" << getID(currFunction)
|
||||
<< "_" << mop.getConstantPoolIndex();
|
||||
break;
|
||||
}
|
||||
@ -663,8 +663,8 @@ SparcV9AsmPrinter::printOneOperand(const MachineOperand &mop,
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user