mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -894,7 +894,7 @@ namespace decls_block {
|
||||
AccessibilityKindField, // accessibility
|
||||
BCArray<IdentifierIDField> // name components
|
||||
// The record is trailed by:
|
||||
// - its asmname, if any
|
||||
// - its _silgen_name, if any
|
||||
// - its generic parameters, if any
|
||||
// - body parameter patterns
|
||||
>;
|
||||
@@ -1198,10 +1198,10 @@ namespace decls_block {
|
||||
BCVBR<5> // index
|
||||
>;
|
||||
|
||||
using AsmnameDeclAttrLayout = BCRecordLayout<
|
||||
Asmname_DECL_ATTR,
|
||||
using SILGenNameDeclAttrLayout = BCRecordLayout<
|
||||
SILGenName_DECL_ATTR,
|
||||
BCFixed<1>, // implicit flag
|
||||
BCBlob // asmname
|
||||
BCBlob // _silgen_name
|
||||
>;
|
||||
|
||||
using AlignmentDeclAttrLayout = BCRecordLayout<
|
||||
|
||||
Reference in New Issue
Block a user