Missing piece of fix for Bug 333
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 4 May 2004 21:41:45 +0000 (21:41 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 4 May 2004 21:41:45 +0000 (21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13362 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index cf24c3a1234904c6c8a70b7acd9edb3bfdbce9df..4b64a77878343442a90a9064bd9b4556f181713d 100644 (file)
@@ -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);
   }