Change the names used for internal labels to use the current
function symbol name instead of a codegen-assigned function
number.
Thanks Evan! :-)
llvm-svn: 42908
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 412f282..f726ff9 100644
--- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -104,8 +104,8 @@
return;
case MachineOperand::MO_ConstantPoolIndex:
- O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << "_"
- << MO.getConstantPoolIndex();
+ O << TAI->getPrivateGlobalPrefix() << "CPI" << MO.getConstantPoolIndex()
+ << '_' << CurrentFnName;
return;
case MachineOperand::MO_ExternalSymbol:
@@ -121,8 +121,8 @@
}
case MachineOperand::MO_JumpTableIndex:
- O << TAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()
- << '_' << MO.getJumpTableIndex();
+ O << TAI->getPrivateGlobalPrefix() << "JTI" << MO.getJumpTableIndex()
+ << '_' << CurrentFnName;
return;
default: