Prepend the magic "\01" to asm names of Clang declarations.

Should actually fix <rdar://problem/14094368> properly.


Swift SVN r5522
This commit is contained in:
Doug Gregor
2013-06-07 21:26:10 +00:00
parent b86828fbab
commit 85f32c5c07
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ void LinkEntity::mangle(raw_ostream &buffer) const {
if (auto clangDecl = getDecl()->getClangDecl()) {
if (auto namedClangDecl = dyn_cast<clang::DeclaratorDecl>(clangDecl)) {
if (auto asmLabel = namedClangDecl->getAttr<clang::AsmLabelAttr>()) {
buffer << asmLabel->getLabel();
buffer << '\01' << asmLabel->getLabel();
} else {
buffer << namedClangDecl->getName();
}