Skip to content

Commit 0789ce9

Browse files
committed
Implement usesFeatureSymbolLinkageMarkers
1 parent cccc281 commit 0789ce9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,14 @@ static bool usesFeatureTupleConformances(Decl *decl) {
32123212
}
32133213

32143214
static bool usesFeatureSymbolLinkageMarkers(Decl *decl) {
3215-
return false;
3215+
auto &attrs = decl->getAttrs();
3216+
return std::any_of(attrs.begin(), attrs.end(), [](auto *attr) {
3217+
if (isa<UsedAttr>(attr))
3218+
return true;
3219+
if (isa<SectionAttr>(attr))
3220+
return true;
3221+
return false;
3222+
});
32163223
}
32173224

32183225
static bool usesFeatureLayoutPrespecialization(Decl *decl) {

0 commit comments

Comments
 (0)