aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index cf24c3a123..4b64a77878 100644
--- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
+++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
@@ -736,7 +736,7 @@ void SparcV9AsmPrinter::emitFunction(const Function &F) {
enterSection(AsmPrinter::ReadOnlyData);
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
- std::string cpiName = ".CPI_" + F.getName() + "_" + utostr(i);
+ std::string cpiName = ".CPI_" + methName + "_" + utostr(i);
printConstant(CP[i], cpiName);
}