LLVM: include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_DEBUGINFO_DWARF_DWARFDATAEXTRACTOR_H
10#define LLVM_DEBUGINFO_DWARF_DWARFDATAEXTRACTOR_H
11
15
16namespace llvm {
17class DWARFObject;
18
19
20
24
25public:
26
27
29 bool IsLittleEndian, uint8_t AddressSize)
30 : DataExtractor(Section.Data, IsLittleEndian, AddressSize), Obj(&Obj),
31 Section(&Section) {}
32
33
35 : DataExtractor(Data, IsLittleEndian, AddressSize) {}
40 IsLittleEndian, AddressSize) {}
41
42
46 Obj(Other.Obj), Section(Other.Section) {}
47
48
49
50
51
52
53 std::pair<uint64_t, dwarf::DwarfFormat>
55
58 }
59
60
61
63 uint64_t *SectionIndex = nullptr,
64 Error *Err = nullptr) const;
66 uint64_t *SectionIndex = nullptr) const {
68 }
69
70
71
74 }
78 }
79
80
81
82
83
85 uint64_t AbsPosOffset = 0) const;
86};
87
88}
89
90#endif
This file contains constants used for implementing Dwarf debug support.
static StringRef substr(StringRef Str, uint64_t Len)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.