13 #ifndef LLVM_OBJECT_ARCHIVE_H 14 #define LLVM_OBJECT_ARCHIVE_H 58 sizeof(ArMemHdr->LastModified)).
rtrim(
' ');
66 return sizeof(ArMemHdrType);
72 char LastModified[12];
80 ArMemHdrType
const *ArMemHdr;
84 virtual void anchor();
105 assert(!Parent || !other.Parent || Parent == other.Parent);
137 uint64_t getChildOffset()
const;
164 return !(*
this == other);
170 return NextChild.takeError();
171 C = std::move(*NextChild);
187 , StringIndex(stri) {}
190 return (Parent == other.Parent) && (SymbolIndex == other.SymbolIndex);
208 return symbol == other.symbol;
212 return !(*
this == other);
225 static const uint64_t MaxMemberSize = 9999999999;
242 bool SkipInternal =
true)
const {
243 return make_range(child_begin(Err, SkipInternal), child_end());
249 return make_range(symbol_begin(), symbol_end());
260 bool isEmpty()
const;
261 bool hasSymbolTable()
const;
264 uint32_t getNumberOfSymbols()
const;
267 return std::move(ThinBuffers);
275 uint16_t FirstRegularStartOfFile = -1;
276 void setFirstRegular(
const Child &
C);
280 mutable std::vector<std::unique_ptr<MemoryBuffer>> ThinBuffers;
286 #endif // LLVM_OBJECT_ARCHIVE_H
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
ChildFallibleIterator(const Child &C)
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
Expected< Child > getNext() const
const Child & operator*() const
bool operator==(const symbol_iterator &other) const
std::vector< std::unique_ptr< MemoryBuffer > > takeThinBuffers()
StringRef getRawLastModified() const
Tagged union holding either a T or a Error.
bool operator==(const SectionedAddress &LHS, const SectionedAddress &RHS)
Symbol(const Archive *p, uint32_t symi, uint32_t stri)
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified() const
bool operator!=(const ChildFallibleIterator &other) const
This is an important class for using LLVM in a threaded context.
StringRef getStringTable() const
A wrapper class for fallible iterators.
const Symbol & operator*() const
Expected< unsigned > getUID() const
const Symbol * operator->() const
const Archive * getParent() const
uint64_t getDataOffset() const
Expected< sys::fs::perms > getAccessMode() const
const Child * operator->() const
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
static ErrorSuccess success()
Create a success value.
A range adaptor for a pair of iterators.
Expected< StringRef > getRawName() const
bool operator!=(const symbol_iterator &other) const
iterator_range< child_iterator > children(Error &Err, bool SkipInternal=true) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
iterator_range< symbol_iterator > symbols() const
Lightweight error class with error context and mandatory checking.
static bool classof(Binary const *v)
LLVM_NODISCARD StringRef rtrim(char Char) const
Return string with consecutive Char characters starting from the right removed.
StringRef - Represent a constant reference to a string, i.e.
Expected< unsigned > getGID() const
symbol_iterator(const Symbol &s)
bool operator==(const ChildFallibleIterator &other) const
StringRef getSymbolTable() const
symbol_iterator & operator++()