Handle quoted names when constructing $stub's,
[oota-llvm.git] / lib / CodeGen / AsmPrinter.cpp
index 9c4e789251a66f2711d8e295072f0edf0e8329e6..d225dbce9fed93002fde82f69d66916f81ac9d1a 100644 (file)
@@ -1435,3 +1435,10 @@ void AsmPrinter::printDataDirective(const Type *type) {
   }
 }
 
+void AsmPrinter::printSuffixedName(std::string &Name, const char* Suffix) {
+  if (Name[0]=='\"')
+    O << "\"" << TAI->getPrivateGlobalPrefix() << 
+         Name.substr(1, Name.length()-2) << Suffix << "\"";
+  else
+    O << TAI->getPrivateGlobalPrefix() << Name << Suffix;
+}