|
LLVM
10.0.0
|
Defines the interface file. More...
#include "llvm/TextAPI/MachO/InterfaceFile.h"
Classes | |
| struct | const_symbol_iterator |
Public Types | |
| using | const_target_iterator = TargetList::const_iterator |
| using | const_target_range = llvm::iterator_range< const_target_iterator > |
| using | const_filtered_target_iterator = llvm::filter_iterator< const_target_iterator, std::function< bool(const Target &)> > |
| using | const_filtered_target_range = llvm::iterator_range< const_filtered_target_iterator > |
| using | SymbolMapType = DenseMap< SymbolsMapKey, Symbol * > |
| using | const_symbol_range = iterator_range< const_symbol_iterator > |
| using | const_filtered_symbol_iterator = filter_iterator< const_symbol_iterator, std::function< bool(const Symbol *)> > |
| using | const_filtered_symbol_range = iterator_range< const_filtered_symbol_iterator > |
Public Member Functions | |
| void | setPath (StringRef Path_) |
| Set the path from which this file was generated (if applicable). More... | |
| StringRef | getPath () const |
| Get the path from which this file was generated (if applicable). More... | |
| void | setFileType (FileType Kind) |
| Set the file type. More... | |
| FileType | getFileType () const |
| Get the file type. More... | |
| ArchitectureSet | getArchitectures () const |
| Get the architectures. More... | |
| PlatformSet | getPlatforms () const |
| Get the platforms. More... | |
| void | addTarget (const Target &Target) |
| Set and add target. More... | |
| template<typename RangeT > | |
| void | addTargets (RangeT &&Targets) |
| Set and add targets. More... | |
| const_target_range | targets () const |
| const_filtered_target_range | targets (ArchitectureSet Archs) const |
| void | setInstallName (StringRef InstallName_) |
| Set the install name of the library. More... | |
| StringRef | getInstallName () const |
| Get the install name of the library. More... | |
| void | setCurrentVersion (PackedVersion Version) |
| Set the current version of the library. More... | |
| PackedVersion | getCurrentVersion () const |
| Get the current version of the library. More... | |
| void | setCompatibilityVersion (PackedVersion Version) |
| Set the compatibility version of the library. More... | |
| PackedVersion | getCompatibilityVersion () const |
| Get the compatibility version of the library. More... | |
| void | setSwiftABIVersion (uint8_t Version) |
| Set the Swift ABI version of the library. More... | |
| uint8_t | getSwiftABIVersion () const |
| Get the Swift ABI version of the library. More... | |
| void | setTwoLevelNamespace (bool V=true) |
| Specify if the library uses two-level namespace (or flat namespace). More... | |
| bool | isTwoLevelNamespace () const |
| Check if the library uses two-level namespace. More... | |
| void | setApplicationExtensionSafe (bool V=true) |
| Specify if the library is application extension safe (or not). More... | |
| bool | isApplicationExtensionSafe () const |
| Check if the library is application extension safe. More... | |
| void | setObjCConstraint (ObjCConstraintType Constraint) |
| Set the Objective-C constraint. More... | |
| ObjCConstraintType | getObjCConstraint () const |
| Get the Objective-C constraint. More... | |
| void | setInstallAPI (bool V=true) |
| Specify if this file was generated during InstallAPI (or not). More... | |
| bool | isInstallAPI () const |
| Check if this file was generated during InstallAPI. More... | |
| void | addParentUmbrella (const Target &Target_, StringRef Parent) |
| Set the parent umbrella frameworks. More... | |
| const std::vector< std::pair< Target, std::string > > & | umbrellas () const |
| const std::vector< std::pair< Target, std::string > > | getParentUmbrellas () const |
| Get the parent umbrella framework. More... | |
| void | addAllowableClient (StringRef InstallName, const Target &Target) |
| Add an allowable client. More... | |
| const std::vector< InterfaceFileRef > & | allowableClients () const |
| Get the list of allowable clients. More... | |
| void | addReexportedLibrary (StringRef InstallName, const Target &Target) |
| Add a re-exported library. More... | |
| const std::vector< InterfaceFileRef > & | reexportedLibraries () const |
| Get the list of re-exported libraries. More... | |
| void | addUUID (const Target &Target, StringRef UUID) |
| Add an Target/UUID pair. More... | |
| void | addUUID (const Target &Target, uint8_t UUID[16]) |
| Add an Target/UUID pair. More... | |
| const std::vector< std::pair< Target, std::string > > & | uuids () const |
| Get the list of Target/UUID pairs. More... | |
| void | addSymbol (SymbolKind Kind, StringRef Name, const TargetList &Targets, SymbolFlags Flags=SymbolFlags::None) |
| Add a symbol to the symbols list or extend an existing one. More... | |
| const_symbol_range | symbols () const |
| const_filtered_symbol_range | exports () const |
| const_filtered_symbol_range | undefineds () const |
Defines the interface file.
Definition at line 156 of file InterfaceFile.h.
| using llvm::MachO::InterfaceFile::const_filtered_symbol_iterator = filter_iterator<const_symbol_iterator, std::function<bool(const Symbol *)> > |
Definition at line 358 of file InterfaceFile.h.
| using llvm::MachO::InterfaceFile::const_filtered_symbol_range = iterator_range<const_filtered_symbol_iterator> |
Definition at line 360 of file InterfaceFile.h.
| using llvm::MachO::InterfaceFile::const_filtered_target_iterator = llvm::filter_iterator<const_target_iterator, std::function<bool(const Target &)> > |
Definition at line 214 of file InterfaceFile.h.
| using llvm::MachO::InterfaceFile::const_filtered_target_range = llvm::iterator_range<const_filtered_target_iterator> |
Definition at line 216 of file InterfaceFile.h.
Definition at line 354 of file InterfaceFile.h.
Definition at line 208 of file InterfaceFile.h.
Definition at line 209 of file InterfaceFile.h.
Definition at line 338 of file InterfaceFile.h.
| void llvm::MachO::InterfaceFile::addAllowableClient | ( | StringRef | InstallName, |
| const Target & | Target | ||
| ) |
Add an allowable client.
Mach-O Dynamic libraries have the concept of allowable clients that are checked during static link time. The name of the application or library that is being generated needs to match one of the allowable clients or the linker refuses to link this library.
| InstallName | The name of the client that is allowed to link this library. |
| Target | The target triple for which this applies. |
Definition at line 48 of file InterfaceFile.cpp.
References llvm::MachO::detail::addEntry().
Set the parent umbrella frameworks.
| Target_ | The target applicable to Parent |
| Parent | The name of Parent |
Definition at line 60 of file InterfaceFile.cpp.
References first, and llvm::lower_bound().
| void llvm::MachO::InterfaceFile::addReexportedLibrary | ( | StringRef | InstallName, |
| const Target & | Target | ||
| ) |
Add a re-exported library.
| InstallName | The name of the library to re-export. |
| Target | The target triple for which this applies. |
Definition at line 54 of file InterfaceFile.cpp.
References llvm::MachO::detail::addEntry().
| void llvm::MachO::InterfaceFile::addSymbol | ( | SymbolKind | Kind, |
| StringRef | Name, | ||
| const TargetList & | Targets, | ||
| SymbolFlags | Flags = SymbolFlags::None |
||
| ) |
Add a symbol to the symbols list or extend an existing one.
Definition at line 111 of file InterfaceFile.cpp.
Set and add target.
| Target | the target to add into. |
Definition at line 99 of file InterfaceFile.cpp.
References llvm::MachO::detail::addEntry().
|
inline |
Set and add targets.
Add the subset of llvm::triples that is supported by Tapi
| Targets | the collection of targets. |
Definition at line 203 of file InterfaceFile.h.
Add an Target/UUID pair.
| Target | The target triple for which this applies. |
| UUID | The UUID of the library for the specified architecture. |
Definition at line 74 of file InterfaceFile.cpp.
References first, and llvm::lower_bound().
Add an Target/UUID pair.
| Target | The target triple for which this applies. |
| UUID | The UUID of the library for the specified architecture. |
Definition at line 88 of file InterfaceFile.cpp.
|
inline |
Get the list of allowable clients.
Definition at line 298 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Definition at line 366 of file InterfaceFile.h.
References llvm::MachO::Symbol::isUndefined(), llvm::make_filter_range(), and llvm::ARMBuildAttrs::Symbol.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the architectures.
Definition at line 184 of file InterfaceFile.h.
References llvm::MachO::mapToArchitectureSet().
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD().
|
inline |
Get the compatibility version of the library.
Definition at line 237 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the current version of the library.
Definition at line 229 of file InterfaceFile.h.
References llvm::coverage::CurrentVersion.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the file type.
Definition at line 179 of file InterfaceFile.h.
Referenced by llvm::MachO::TextAPIWriter::writeToStream().
|
inline |
Get the install name of the library.
Definition at line 223 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the Objective-C constraint.
Definition at line 263 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD().
|
inline |
Get the parent umbrella framework.
Definition at line 280 of file InterfaceFile.h.
|
inline |
Get the path from which this file was generated (if applicable).
Definition at line 166 of file InterfaceFile.h.
Referenced by llvm::MachO::TextAPIWriter::writeToStream().
|
inline |
Get the platforms.
Definition at line 191 of file InterfaceFile.h.
References llvm::MachO::mapToPlatformSet().
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::object::TapiFile::TapiFile().
|
inline |
Get the Swift ABI version of the library.
Definition at line 243 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Check if the library is application extension safe.
Definition at line 255 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Check if this file was generated during InstallAPI.
Definition at line 269 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Check if the library uses two-level namespace.
Definition at line 249 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the list of re-exported libraries.
Definition at line 311 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
Specify if the library is application extension safe (or not).
Definition at line 252 of file InterfaceFile.h.
|
inline |
Set the compatibility version of the library.
Definition at line 232 of file InterfaceFile.h.
References llvm::IndexedInstrProf::Version.
|
inline |
Set the current version of the library.
Definition at line 226 of file InterfaceFile.h.
References llvm::coverage::CurrentVersion, and llvm::IndexedInstrProf::Version.
|
inline |
Set the file type.
This is used by the YAML writer to identify the specification it should use for writing the file.
| Kind | The file type. |
Definition at line 174 of file InterfaceFile.h.
Specify if this file was generated during InstallAPI (or not).
Definition at line 266 of file InterfaceFile.h.
|
inline |
Set the install name of the library.
Definition at line 220 of file InterfaceFile.h.
|
inline |
Set the Objective-C constraint.
Definition at line 258 of file InterfaceFile.h.
|
inline |
Set the path from which this file was generated (if applicable).
| Path_ | The path to the source file. |
Definition at line 161 of file InterfaceFile.h.
|
inline |
Set the Swift ABI version of the library.
Definition at line 240 of file InterfaceFile.h.
References llvm::IndexedInstrProf::Version.
Specify if the library uses two-level namespace (or flat namespace).
Definition at line 246 of file InterfaceFile.h.
|
inline |
Definition at line 362 of file InterfaceFile.h.
Referenced by llvm::object::TapiFile::TapiFile().
|
inline |
Definition at line 210 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
| InterfaceFile::const_filtered_target_range llvm::MachO::InterfaceFile::targets | ( | ArchitectureSet | Archs | ) | const |
Definition at line 104 of file InterfaceFile.cpp.
References llvm::MachO::ArchitectureSet::has(), and llvm::make_filter_range().
|
inline |
Definition at line 275 of file InterfaceFile.h.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Definition at line 375 of file InterfaceFile.h.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), Allocator, llvm::coverage::CurrentVersion, llvm::StringRef::data(), llvm::StringRef::empty(), llvm::MachO::Symbol::isUndefined(), llvm::make_filter_range(), llvm::MachO::None, llvm::StringRef::size(), and llvm::ARMBuildAttrs::Symbol.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
|
inline |
Get the list of Target/UUID pairs.
Definition at line 330 of file InterfaceFile.h.
References Name, and llvm::MachO::None.
Referenced by llvm::yaml::MappingTraits< T >::NormalizedTBD::NormalizedTBD(), and llvm::yaml::MappingTraits< T >::NormalizedTBD_V4::NormalizedTBD_V4().
1.8.13