mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[serialization] Add support for asmname.
We were actually ignoring this completely because DeclAttributes::isEmpty wasn't taking them into account. Swift SVN r6302
This commit is contained in:
@@ -812,6 +812,8 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
|
||||
fn->setStatic(isClassMethod);
|
||||
if (isImplicit)
|
||||
fn->setImplicit();
|
||||
if (!blobData.empty())
|
||||
fn->getMutableAttrs().AsmName = ctx.AllocateCopy(blobData);
|
||||
if (isAssignmentOrConversion) {
|
||||
if (fn->isOperator())
|
||||
fn->getMutableAttrs().Assignment = true;
|
||||
|
||||
Reference in New Issue
Block a user