@@ -43,13 +43,13 @@ class FrontendRecordsSlice : public llvm::MachO::RecordsSlice {
4343 // / \param Flags The flags that describe attributes of the symbol.
4444 // / \param Inlined Whether declaration is inlined, only applicable to
4545 // / functions.
46- // / \return The non-owning pointer to added record in slice.
47- GlobalRecord * addGlobal (StringRef Name, RecordLinkage Linkage,
48- GlobalRecord::Kind GV,
49- const clang::AvailabilityInfo Avail, const Decl *D ,
50- const HeaderType Access ,
51- SymbolFlags Flags = SymbolFlags::None,
52- bool Inlined = false );
46+ // / \return The non-owning pointer to added record in slice with it's frontend
47+ // / attributes.
48+ std::pair<GlobalRecord *, FrontendAttrs *>
49+ addGlobal (StringRef Name, RecordLinkage Linkage, GlobalRecord::Kind GV ,
50+ const clang::AvailabilityInfo Avail, const Decl *D ,
51+ const HeaderType Access, SymbolFlags Flags = SymbolFlags::None,
52+ bool Inlined = false );
5353
5454 // / Add ObjC Class record with attributes from AST.
5555 // /
@@ -60,11 +60,12 @@ class FrontendRecordsSlice : public llvm::MachO::RecordsSlice {
6060 // / \param D The pointer to the declaration from traversing AST.
6161 // / \param Access The intended access level of symbol.
6262 // / \param IsEHType Whether declaration has an exception attribute.
63- // / \return The non-owning pointer to added record in slice.
64- ObjCInterfaceRecord *addObjCInterface (StringRef Name, RecordLinkage Linkage,
65- const clang::AvailabilityInfo Avail,
66- const Decl *D, HeaderType Access,
67- bool IsEHType);
63+ // / \return The non-owning pointer to added record in slice with it's frontend
64+ // / attributes.
65+ std::pair<ObjCInterfaceRecord *, FrontendAttrs *>
66+ addObjCInterface (StringRef Name, RecordLinkage Linkage,
67+ const clang::AvailabilityInfo Avail, const Decl *D,
68+ HeaderType Access, bool IsEHType);
6869
6970 // / Add ObjC Category record with attributes from AST.
7071 // /
@@ -75,11 +76,12 @@ class FrontendRecordsSlice : public llvm::MachO::RecordsSlice {
7576 // / to the active target triple.
7677 // / \param D The pointer to the declaration from traversing AST.
7778 // / \param Access The intended access level of symbol.
78- // / \return The non-owning pointer to added record in slice.
79- ObjCCategoryRecord *addObjCCategory (StringRef ClassToExtend,
80- StringRef CategoryName,
81- const clang::AvailabilityInfo Avail,
82- const Decl *D, HeaderType Access);
79+ // / \return The non-owning pointer to added record in slice with it's frontend
80+ // / attributes.
81+ std::pair<ObjCCategoryRecord *, FrontendAttrs *>
82+ addObjCCategory (StringRef ClassToExtend, StringRef CategoryName,
83+ const clang::AvailabilityInfo Avail, const Decl *D,
84+ HeaderType Access);
8385
8486 // / Add ObjC IVar record with attributes from AST.
8587 // /
@@ -91,12 +93,13 @@ class FrontendRecordsSlice : public llvm::MachO::RecordsSlice {
9193 // / \param D The pointer to the declaration from traversing AST.
9294 // / \param Access The intended access level of symbol.
9395 // / \param AC The access control tied to the ivar declaration.
94- // / \return The non-owning pointer to added record in slice.
95- ObjCIVarRecord *addObjCIVar (ObjCContainerRecord *Container,
96- StringRef IvarName, RecordLinkage Linkage,
97- const clang::AvailabilityInfo Avail,
98- const Decl *D, HeaderType Access,
99- const clang::ObjCIvarDecl::AccessControl AC);
96+ // / \return The non-owning pointer to added record in slice with it's frontend
97+ // / attributes.
98+ std::pair<ObjCIVarRecord *, FrontendAttrs *>
99+ addObjCIVar (ObjCContainerRecord *Container, StringRef IvarName,
100+ RecordLinkage Linkage, const clang::AvailabilityInfo Avail,
101+ const Decl *D, HeaderType Access,
102+ const clang::ObjCIvarDecl::AccessControl AC);
100103
101104private:
102105 // / Mapping of records stored in slice to their frontend attributes.
0 commit comments