summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/InstallAPI/Frontend.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/InstallAPI/Frontend.h')
-rw-r--r--clang/include/clang/InstallAPI/Frontend.h94
1 files changed, 0 insertions, 94 deletions
diff --git a/clang/include/clang/InstallAPI/Frontend.h b/clang/include/clang/InstallAPI/Frontend.h
index cbc2b159ebd1..873cb50d60a5 100644
--- a/clang/include/clang/InstallAPI/Frontend.h
+++ b/clang/include/clang/InstallAPI/Frontend.h
@@ -25,100 +25,6 @@
namespace clang {
namespace installapi {
-using SymbolFlags = llvm::MachO::SymbolFlags;
-using RecordLinkage = llvm::MachO::RecordLinkage;
-using GlobalRecord = llvm::MachO::GlobalRecord;
-using ObjCContainerRecord = llvm::MachO::ObjCContainerRecord;
-using ObjCInterfaceRecord = llvm::MachO::ObjCInterfaceRecord;
-using ObjCCategoryRecord = llvm::MachO::ObjCCategoryRecord;
-using ObjCIVarRecord = llvm::MachO::ObjCIVarRecord;
-
-// Represents a collection of frontend records for a library that are tied to a
-// darwin target triple.
-class FrontendRecordsSlice : public llvm::MachO::RecordsSlice {
-public:
- FrontendRecordsSlice(const llvm::Triple &T)
- : llvm::MachO::RecordsSlice({T}) {}
-
- /// Add non-ObjC global record with attributes from AST.
- ///
- /// \param Name The name of symbol.
- /// \param Linkage The linkage of symbol.
- /// \param GV The kind of global.
- /// \param Avail The availability information tied to the active target
- /// triple.
- /// \param D The pointer to the declaration from traversing AST.
- /// \param Access The intended access level of symbol.
- /// \param Flags The flags that describe attributes of the symbol.
- /// \param Inlined Whether declaration is inlined, only applicable to
- /// functions.
- /// \return The non-owning pointer to added record in slice.
- GlobalRecord *addGlobal(StringRef Name, RecordLinkage Linkage,
- GlobalRecord::Kind GV,
- const clang::AvailabilityInfo Avail, const Decl *D,
- const HeaderType Access,
- SymbolFlags Flags = SymbolFlags::None,
- bool Inlined = false);
-
- /// Add ObjC Class record with attributes from AST.
- ///
- /// \param Name The name of class, not symbol.
- /// \param Linkage The linkage of symbol.
- /// \param Avail The availability information tied to the active target
- /// triple.
- /// \param D The pointer to the declaration from traversing AST.
- /// \param Access The intended access level of symbol.
- /// \param IsEHType Whether declaration has an exception attribute.
- /// \return The non-owning pointer to added record in slice.
- ObjCInterfaceRecord *addObjCInterface(StringRef Name, RecordLinkage Linkage,
- const clang::AvailabilityInfo Avail,
- const Decl *D, HeaderType Access,
- bool IsEHType);
-
- /// Add ObjC Category record with attributes from AST.
- ///
- /// \param ClassToExtend The name of class that is extended by category, not
- /// symbol.
- /// \param CategoryName The name of category, not symbol.
- /// \param Avail The availability information tied
- /// to the active target triple.
- /// \param D The pointer to the declaration from traversing AST.
- /// \param Access The intended access level of symbol.
- /// \return The non-owning pointer to added record in slice.
- ObjCCategoryRecord *addObjCCategory(StringRef ClassToExtend,
- StringRef CategoryName,
- const clang::AvailabilityInfo Avail,
- const Decl *D, HeaderType Access);
-
- /// Add ObjC IVar record with attributes from AST.
- ///
- /// \param Container The owning pointer for instance variable.
- /// \param Name The name of ivar, not symbol.
- /// \param Linkage The linkage of symbol.
- /// \param Avail The availability information tied to the active target
- /// triple.
- /// \param D The pointer to the declaration from traversing AST.
- /// \param Access The intended access level of symbol.
- /// \param AC The access control tied to the ivar declaration.
- /// \return The non-owning pointer to added record in slice.
- ObjCIVarRecord *addObjCIVar(ObjCContainerRecord *Container,
- StringRef IvarName, RecordLinkage Linkage,
- const clang::AvailabilityInfo Avail,
- const Decl *D, HeaderType Access,
- const clang::ObjCIvarDecl::AccessControl AC);
-
-private:
- /// Frontend information captured about records.
- struct FrontendAttrs {
- const AvailabilityInfo Avail;
- const Decl *D;
- const HeaderType Access;
- };
-
- /// Mapping of records stored in slice to their frontend attributes.
- llvm::DenseMap<llvm::MachO::Record *, FrontendAttrs> FrontendRecords;
-};
-
/// Create a buffer that contains all headers to scan
/// for global symbols with.
std::unique_ptr<llvm::MemoryBuffer> createInputBuffer(InstallAPIContext &Ctx);