diff options
author | Dale Johannesen <dalej@apple.com> | 2008-05-19 21:38:18 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-05-19 21:38:18 +0000 |
commit | c215b3ef5d9627f5fb6fe9034e46bc29ae592916 (patch) | |
tree | 4c9eed2f1deea199d388cce1b02a4b3e081a71cf /lib/CodeGen/AsmPrinter.cpp | |
parent | 7be1c454c96dc5fa41ac10d014f76350df94f9cf (diff) |
Handle quoted names when constructing $stub's,
$non_lazy_ptr's and $lazy_ptr's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 9c4e789251..d225dbce9f 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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; +} |