mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user