mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
This commit is contained in:
@@ -405,7 +405,7 @@ static void mangleConstant(SILDeclRef c, llvm::raw_ostream &buffer,
|
||||
// As a special case, functions can have external asm names.
|
||||
// Use the asm name only for the original non-thunked, non-curried entry
|
||||
// point.
|
||||
if (auto AsmA = c.getDecl()->getAttrs().getAttribute<AsmnameAttr>())
|
||||
if (auto AsmA = c.getDecl()->getAttrs().getAttribute<SILGenNameAttr>())
|
||||
if (!c.isForeignToNativeThunk() && !c.isNativeToForeignThunk()
|
||||
&& !c.isCurried) {
|
||||
buffer << AsmA->Name;
|
||||
|
||||
Reference in New Issue
Block a user