|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/DebugInfo/PDB/Native/DbiStream.h 29 struct coff_section;
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h 34 struct coff_section;
tools/llvm-readobj/Win64EHDumper.h 19 struct coff_section;
References
include/llvm/ADT/ArrayRef.h 43 using iterator = const T *;
44 using const_iterator = const T *;
50 const T *Data = nullptr;
66 /*implicit*/ ArrayRef(const T &OneElt)
70 /*implicit*/ ArrayRef(const T *data, size_t length)
74 ArrayRef(const T *begin, const T *end)
74 ArrayRef(const T *begin, const T *end)
81 /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec)
87 /*implicit*/ ArrayRef(const std::vector<T, A> &Vec)
92 /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
97 /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
100 /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
145 const T *data() const { return Data; }
151 const T &front() const {
157 const T &back() const {
163 template <typename Allocator> ArrayRef<T> copy(Allocator &A) {
178 ArrayRef<T> slice(size_t N, size_t M) const {
184 ArrayRef<T> slice(size_t N) const { return slice(N, size() - N); }
187 ArrayRef<T> drop_front(size_t N = 1) const {
193 ArrayRef<T> drop_back(size_t N = 1) const {
200 template <class PredicateT> ArrayRef<T> drop_while(PredicateT Pred) const {
206 template <class PredicateT> ArrayRef<T> drop_until(PredicateT Pred) const {
211 ArrayRef<T> take_front(size_t N = 1) const {
218 ArrayRef<T> take_back(size_t N = 1) const {
226 template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const {
232 template <class PredicateT> ArrayRef<T> take_until(PredicateT Pred) const {
239 const T &operator[](size_t Index) const {
249 typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
257 typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
263 std::vector<T> vec() const {
270 operator std::vector<T>() const {
include/llvm/DebugInfo/PDB/Native/DbiStream.h 81 FixedStreamArray<object::coff_section> getSectionHeaders() const;
125 FixedStreamArray<object::coff_section> SectionHeaders;
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h 89 createSectionMap(ArrayRef<llvm::object::coff_section> SecHdrs);
include/llvm/Object/COFF.h 774 const coff_section *SectionTable;
794 const coff_section *toSec(DataRefImpl Sec) const;
933 const coff_section *getCOFFSection(const SectionRef &Section) const;
985 std::error_code getSection(int32_t index, const coff_section *&Res) const;
987 const coff_section *&Res) const;
1039 ArrayRef<coff_relocation> getRelocations(const coff_section *Sec) const;
1041 Expected<StringRef> getSectionName(const coff_section *Sec) const;
1042 uint64_t getSectionSize(const coff_section *Sec) const;
1043 Error getSectionContents(const coff_section *Sec,
include/llvm/Support/Alignment.h 103 return Constant<std::alignment_of<T>::value>();
include/llvm/Support/BinaryStreamArray.h 262 typedef FixedStreamArrayIterator<T> Iterator;
269 bool operator==(const FixedStreamArray<T> &Other) const {
273 bool operator!=(const FixedStreamArray<T> &Other) const {
279 const T &operator[](uint32_t Index) const {
281 uint32_t Off = Index * sizeof(T);
283 if (auto EC = Stream.readBytes(Off, sizeof(T), Data)) {
293 uint32_t size() const { return Stream.getLength() / sizeof(T); }
297 FixedStreamArrayIterator<T> begin() const {
301 FixedStreamArrayIterator<T> end() const {
305 const T &front() const { return *begin(); }
306 const T &back() const {
include/llvm/Support/BinaryStreamReader.h 187 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) {
194 if (NumElements > UINT32_MAX / sizeof(T))
198 if (auto EC = readBytes(Bytes, NumElements * sizeof(T)))
235 Error readArray(FixedStreamArray<T> &Array, uint32_t NumItems) {
241 if (NumItems > UINT32_MAX / sizeof(T))
246 if (auto EC = readStreamRef(View, NumItems * sizeof(T)))
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
lib/DebugInfo/PDB/Native/DbiStream.cpp 201 FixedStreamArray<object::coff_section> DbiStream::getSectionHeaders() const {
269 if (StreamLen % sizeof(object::coff_section))
273 size_t NumSections = StreamLen / sizeof(object::coff_section);
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp 357 ArrayRef<llvm::object::coff_section> SecHdrs) {
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 463 const coff_section *CoffSection = COFFObj->getCOFFSection(Section);
lib/Object/COFFImportFile.cpp 190 u32(sizeof(Header) + (NumberOfSections * sizeof(coff_section)) +
203 const coff_section SectionTable[NumberOfSections] = {
208 u32(sizeof(coff_file_header) + NumberOfSections * sizeof(coff_section)),
209 u32(sizeof(coff_file_header) + NumberOfSections * sizeof(coff_section) +
220 u32(sizeof(coff_file_header) + NumberOfSections * sizeof(coff_section) +
329 u32(sizeof(Header) + (NumberOfSections * sizeof(coff_section)) +
339 const coff_section SectionTable[NumberOfSections] = {
345 (NumberOfSections * sizeof(coff_section))),
390 u32(sizeof(Header) + (NumberOfSections * sizeof(coff_section)) +
402 const coff_section SectionTable[NumberOfSections] = {
407 u32(sizeof(coff_file_header) + NumberOfSections * sizeof(coff_section)),
420 u32(sizeof(coff_file_header) + NumberOfSections * sizeof(coff_section) +
501 u32(sizeof(Header) + (NumberOfSections * sizeof(coff_section))),
509 const coff_section SectionTable[NumberOfSections] = {
lib/Object/COFFObjectFile.cpp 57 static std::error_code getObject(const T *&Obj, MemoryBufferRef M,
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
119 const coff_section *Addr = reinterpret_cast<const coff_section*>(Ref.p);
177 const coff_section *Section = nullptr;
253 const coff_section *Sec = nullptr;
267 const coff_section *Sec = toSec(Ref);
273 const coff_section *Sec = toSec(Ref);
278 const coff_section *Sec = toSec(Ref);
297 const coff_section *Sec = toSec(Ref);
305 const coff_section *Sec = toSec(Ref);
314 const coff_section *Sec = toSec(Ref);
319 const coff_section *Sec = toSec(Ref);
324 const coff_section *Sec = toSec(Ref);
335 return (Offset / sizeof(coff_section)) + 1;
339 const coff_section *Sec = toSec(Ref);
345 static uint32_t getNumberOfRelocations(const coff_section *Sec,
363 getFirstReloc(const coff_section *Sec, MemoryBufferRef M, const uint8_t *Base) {
381 const coff_section *Sec = toSec(Ref);
391 const coff_section *Sec = toSec(Ref);
459 const coff_section *Section = getCOFFSection(S);
475 const coff_section *Section = getCOFFSection(S);
761 (uint64_t)getNumberOfSections() * sizeof(coff_section))))
959 const coff_section *&Result) const {
972 const coff_section *&Result) const {
1055 COFFObjectFile::getSectionName(const coff_section *Sec) const {
1083 uint64_t COFFObjectFile::getSectionSize(const coff_section *Sec) const {
1099 Error COFFObjectFile::getSectionContents(const coff_section *Sec,
1149 const coff_section *
1172 COFFObjectFile::getRelocations(const coff_section *Sec) const {
1768 const coff_section *COFFSect = Obj->getCOFFSection(Section);
1826 const coff_section *Section = nullptr;
lib/Object/WindowsResource.cpp 745 auto *SectionOneHeader =
762 CurrentOffset += sizeof(coff_section);
763 auto *SectionTwoHeader =
780 CurrentOffset += sizeof(coff_section);
tools/lld/COFF/Chunks.cpp 32 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h)
tools/lld/COFF/Chunks.h 201 SectionChunk(ObjFile *file, const coff_section *header);
308 const coff_section *header;
tools/lld/COFF/InputFiles.cpp 202 const coff_section* ObjFile::getSection(uint32_t i) {
203 const coff_section *sec;
222 const coff_section *sec = getSection(i);
233 const coff_section *sec = getSection(sectionNumber);
317 const coff_section *parentSec = getSection(parentIndex);
tools/lld/COFF/InputFiles.h 188 const coff_section *addrsigSec = nullptr;
214 const coff_section* getSection(uint32_t i);
215 const coff_section *getSection(COFFSymbolRef sym) {
tools/lld/COFF/PDB.cpp 1675 ArrayRef<object::coff_section> sections = {
1677 sectionTable.size() / sizeof(object::coff_section)};
tools/lld/COFF/Writer.cpp 317 auto *hdr = reinterpret_cast<coff_section *>(buf);
1215 sizeof(coff_section) * outputSections.size();
1441 buf += sizeof(coff_section);
1444 buf - outputSections.size() * sizeof(coff_section), buf);
tools/lld/COFF/Writer.h 71 llvm::object::coff_section header = {};
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp 74 const llvm::object::coff_section &cs = dbi().getSectionHeaders()[segment - 1];
tools/llvm-nm/llvm-nm.cpp 961 const coff_section *Section = Obj.getCOFFSection(*SecI);
tools/llvm-objcopy/COFF/Object.h 37 object::coff_section Header;
tools/llvm-objcopy/COFF/Reader.cpp 60 const coff_section *Sec;
tools/llvm-objcopy/COFF/Writer.cpp 187 SizeOfHeaders += sizeof(coff_section) * Obj.getSections().size();
tools/llvm-objdump/COFFDump.cpp 160 const coff_section *&ResolvedSection,
198 const coff_section *Section;
455 const coff_section *Pdata = Obj->getCOFFSection(Section);
tools/llvm-pdbutil/DumpOutputStyle.cpp 500 ArrayRef<llvm::object::coff_section>>>
520 ArrayRef<object::coff_section> Headers;
521 if (Stream->getLength() % sizeof(object::coff_section) != 0)
526 uint32_t NumHeaders = Stream->getLength() / sizeof(object::coff_section);
538 ArrayRef<object::coff_section> Headers;
541 for (const auto &H : Headers)
1883 ArrayRef<object::coff_section> Headers;
1892 for (const auto &Header : Headers) {
tools/llvm-readobj/COFFDumper.cpp 143 void printRelocatedField(StringRef Label, const coff_section *Sec,
163 std::error_code resolveSymbol(const coff_section *Section, uint64_t Offset,
165 std::error_code resolveSymbolName(const coff_section *Section,
167 std::error_code resolveSymbolName(const coff_section *Section,
175 typedef DenseMap<const coff_section*, std::vector<RelocationRef> > RelocMapTy;
235 const coff_section *Sec;
258 std::error_code COFFDumper::resolveSymbol(const coff_section *Section,
279 std::error_code COFFDumper::resolveSymbolName(const coff_section *Section,
294 std::error_code COFFDumper::resolveSymbolName(const coff_section *Section,
306 void COFFDumper::printRelocatedField(StringRef Label, const coff_section *Sec,
332 const coff_section *Section = Obj->getCOFFSection(Sec);
590 const coff_section *Section = Obj->getCOFFSection(S);
1322 const coff_section *Section = Obj->getCOFFSection(Sec);
1436 const coff_section *Section) {
1452 const coff_section *Section;
1535 const coff_section *Assoc;
tools/llvm-readobj/Win64EHDumper.cpp 115 const coff_section *Section, uint64_t Offset,
141 const coff_section *Section,
143 const coff_section *&ResolvedSection,
165 const coff_section *Section,
236 void Dumper::printUnwindInfo(const Context &Ctx, const coff_section *Section,
281 const coff_section *Section,
287 const coff_section *XData;
317 const coff_section *PData = Ctx.COFF.getCOFFSection(Section);
tools/llvm-readobj/Win64EHDumper.h 28 typedef std::error_code (*SymbolResolver)(const object::coff_section *,
44 const object::coff_section *Section,
48 void printUnwindInfo(const Context &Ctx, const object::coff_section *Section,
51 const object::coff_section *Section,
tools/obj2yaml/coff2yaml.cpp 120 const object::coff_section *COFFSection = Obj.getCOFFSection(S);
155 const object::coff_section *COFFSection = Obj.getCOFFSection(ObjSection);
usr/include/c++/7.4.0/bits/alloc_traits.h 387 using allocator_type = allocator<_Tp>;
389 using value_type = _Tp;
392 using pointer = _Tp*;
395 using const_pointer = const _Tp*;
usr/include/c++/7.4.0/bits/allocator.h 108 class allocator: public __allocator_base<_Tp>
113 typedef _Tp* pointer;
114 typedef const _Tp* const_pointer;
115 typedef _Tp& reference;
116 typedef const _Tp& const_reference;
117 typedef _Tp value_type;
137 allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/stl_vector.h 77 rebind<_Tp>::other _Tp_alloc_type;
216 class vector : protected _Vector_base<_Tp, _Alloc>
227 typedef _Vector_base<_Tp, _Alloc> _Base;
232 typedef _Tp value_type;
919 _Tp*
923 const _Tp*
usr/include/c++/7.4.0/ext/alloc_traits.h 117 { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
usr/include/c++/7.4.0/ext/new_allocator.h 63 typedef _Tp* pointer;
64 typedef const _Tp* const_pointer;
65 typedef _Tp& reference;
66 typedef const _Tp& const_reference;
67 typedef _Tp value_type;
usr/include/c++/7.4.0/initializer_list 50 typedef _E value_type;
51 typedef const _E& reference;
52 typedef const _E& const_reference;
54 typedef const _E* iterator;
55 typedef const _E* const_iterator;