14 #ifndef LLVM_OBJECT_MACHOUNIVERSAL_H 15 #define LLVM_OBJECT_MACHOUNIVERSAL_H 30 virtual void anchor();
52 return (Parent == Other.Parent) && (Index == Other.Index);
84 return Header64.
align;
93 const char *McpuDefault, *ArchFlag;
97 &McpuDefault, &ArchFlag);
102 &McpuDefault, &ArchFlag);
105 std::string ArchFlagName(ArchFlag);
108 std::string ArchFlagName(
"");
126 return Obj == Other.Obj;
129 return !(*
this == Other);
object_iterator end_objects() const
uint32_t getAlign() const
ObjectForArch getNext() const
Expected< std::unique_ptr< Archive > > getAsArchive() const
This class represents lattice values for constants.
const ObjectForArch * operator->() const
uint32_t getMagic() const
uint32_t getOffset() const
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
ObjectForArch(const MachOUniversalBinary *Parent, uint32_t Index)
bool operator==(const ObjectForArch &Other) const
std::string getArchFlagName() const
uint32_t getNumberOfObjects() const
object_iterator(const ObjectForArch &Obj)
Tagged union holding either a T or a Error.
bool operator==(const object_iterator &Other) const
bool operator!=(const object_iterator &Other) const
Expected< std::unique_ptr< MachOObjectFile > > getAsObjectFile() const
MachOUniversalBinary(MemoryBufferRef Souce, Error &Err)
uint32_t getCPUSubType() const
Triple - Helper class for working with autoconf configuration names.
object_iterator & operator++()
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
static Expected< std::unique_ptr< MachOUniversalBinary > > create(MemoryBufferRef Source)
iterator_range< object_iterator > objects() const
Expected< std::unique_ptr< MachOObjectFile > > getObjectForArch(StringRef ArchName) const
bool isMachOUniversalBinary() const
uint32_t getCPUType() const
uint32_t getReserved() const
Triple getArchTriple(const char **McpuDefault=nullptr) const
object_iterator begin_objects() const
A range adaptor for a pair of iterators.
const ObjectForArch & operator*() const
static bool classof(Binary const *V)
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.