summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-05-19 21:38:18 +0000
committerDale Johannesen <dalej@apple.com>2008-05-19 21:38:18 +0000
commit5bf742f2aab7ad4370f867bb8e90230c61412d17 (patch)
tree2c77ad6e678099b91f93ee0d8308940bd9752cfd /llvm/lib/CodeGen/AsmPrinter.cpp
parentca8da1d89da6961e0b4c7c296c43649c41e053e5 (diff)
downloadbcm5719-llvm-5bf742f2aab7ad4370f867bb8e90230c61412d17.tar.gz
bcm5719-llvm-5bf742f2aab7ad4370f867bb8e90230c61412d17.zip
Handle quoted names when constructing $stub's,
$non_lazy_ptr's and $lazy_ptr's. llvm-svn: 51277
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 9c4e789251a..d225dbce9fe 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -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;
+}
OpenPOWER on IntegriCloud