13 #ifndef LLVM_OBJECT_TAPI_UNIVERSAL_H 14 #define LLVM_OBJECT_TAPI_UNIVERSAL_H 34 : Parent(Parent), Index(Index) {}
39 return (Parent == Other.Parent) && (Index == Other.Index);
70 return Obj == Other.Obj;
73 return !(*
this == Other);
102 std::unique_ptr<MachO::InterfaceFile> ParsedFile;
103 std::vector<MachO::Architecture> Architectures;
109 #endif // LLVM_OBJECT_TAPI_UNIVERSAL_H
This class represents lattice values for constants.
object_iterator & operator++()
bool isTapiUniversal() const
const ObjectForArch & operator*() const
bool operator!=(const object_iterator &Other) const
static bool classof(const Binary *v)
iterator_range< object_iterator > objects() const
Tagged union holding either a T or a Error.
object_iterator(const ObjectForArch &Obj)
ObjectForArch(const TapiUniversal *Parent, int Index)
TapiUniversal(MemoryBufferRef Source, Error &Err)
bool operator==(const ObjectForArch &Other) const
object_iterator end_objects() const
Expected< std::unique_ptr< TapiFile > > getAsObjectFile() const
bool operator==(const object_iterator &Other) const
uint32_t getCPUSubType() const
static Expected< std::unique_ptr< TapiUniversal > > create(MemoryBufferRef Source)
std::string getArchFlagName() const
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
std::pair< uint32_t, uint32_t > getCPUTypeFromArchitecture(Architecture Arch)
Convert an architecture slice to a CPU Type and Subtype pair.
A range adaptor for a pair of iterators.
uint32_t getNumberOfObjects() const
uint32_t getCPUType() const
const ObjectForArch * operator->() const
~TapiUniversal() override
Lightweight error class with error context and mandatory checking.
ObjectForArch getNext() const
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
object_iterator begin_objects() const