LLVM  16.0.0git
DWARFFormValue.h
Go to the documentation of this file.
1 //===- DWARFFormValue.h -----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
11 
12 #include "llvm/ADT/ArrayRef.h"
13 #include "llvm/ADT/None.h"
17 #include <cstdint>
18 
19 namespace llvm {
20 
21 class DWARFContext;
22 class DWARFObject;
23 class DWARFDataExtractor;
24 class DWARFUnit;
25 class raw_ostream;
26 
28 public:
29  enum FormClass {
40  };
41 
42 private:
43  struct ValueType {
44  ValueType() { uval = 0; }
45  ValueType(int64_t V) : sval(V) {}
46  ValueType(uint64_t V) : uval(V) {}
47  ValueType(const char *V) : cstr(V) {}
48 
49  union {
50  uint64_t uval;
51  int64_t sval;
52  const char *cstr;
53  };
54  const uint8_t *data = nullptr;
55  uint64_t SectionIndex; /// Section index for reference forms.
56  };
57 
58  dwarf::Form Form; /// Form for this value.
59  dwarf::DwarfFormat Format =
60  dwarf::DWARF32; /// Remember the DWARF format at extract time.
61  ValueType Value; /// Contains all data for the form.
62  const DWARFUnit *U = nullptr; /// Remember the DWARFUnit at extract time.
63  const DWARFContext *C = nullptr; /// Context for extract time.
64 
65  DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {}
66 
67 public:
69 
70  static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V);
72  static DWARFFormValue createFromPValue(dwarf::Form F, const char *V);
76  uint64_t *OffsetPtr);
77 
78  dwarf::Form getForm() const { return Form; }
79  uint64_t getRawUValue() const { return Value.uval; }
80 
81  bool isFormClass(FormClass FC) const;
82  const DWARFUnit *getUnit() const { return U; }
83  void dump(raw_ostream &OS, DIDumpOptions DumpOpts = DIDumpOptions()) const;
85  object::SectionedAddress SA) const;
86  void dumpAddress(raw_ostream &OS, uint64_t Address) const;
87  static void dumpAddress(raw_ostream &OS, uint8_t AddressSize,
88  uint64_t Address);
89  static void dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS,
90  DIDumpOptions DumpOpts, uint64_t SectionIndex);
91 
92  /// Extracts a value in \p Data at offset \p *OffsetPtr. The information
93  /// in \p FormParams is needed to interpret some forms. The optional
94  /// \p Context and \p Unit allows extracting information if the form refers
95  /// to other sections (e.g., .debug_str).
96  bool extractValue(const DWARFDataExtractor &Data, uint64_t *OffsetPtr,
98  const DWARFContext *Context = nullptr,
99  const DWARFUnit *Unit = nullptr);
100 
101  bool extractValue(const DWARFDataExtractor &Data, uint64_t *OffsetPtr,
103  return extractValue(Data, OffsetPtr, FormParams, nullptr, U);
104  }
105 
106  /// getAsFoo functions below return the extracted value as Foo if only
107  /// DWARFFormValue has form class is suitable for representing Foo.
108  std::optional<uint64_t> getAsReference() const;
109  struct UnitOffset {
112  };
113  std::optional<UnitOffset> getAsRelativeReference() const;
114  std::optional<uint64_t> getAsUnsignedConstant() const;
115  std::optional<int64_t> getAsSignedConstant() const;
117  std::optional<uint64_t> getAsAddress() const;
118  std::optional<object::SectionedAddress> getAsSectionedAddress() const;
119  std::optional<uint64_t> getAsSectionOffset() const;
120  std::optional<ArrayRef<uint8_t>> getAsBlock() const;
121  std::optional<uint64_t> getAsCStringOffset() const;
122  std::optional<uint64_t> getAsReferenceUVal() const;
123  /// Correctly extract any file paths from a form value.
124  ///
125  /// These attributes can be in the from DW_AT_decl_file or DW_AT_call_file
126  /// attributes. We need to use the file index in the correct DWARFUnit's line
127  /// table prologue, and each DWARFFormValue has the DWARFUnit the form value
128  /// was extracted from.
129  ///
130  /// \param Kind The kind of path to extract.
131  ///
132  /// \returns A valid string value on success, or std::nullopt if the form
133  /// class is not FC_Constant, or if the file index is not valid.
134  std::optional<std::string>
136 
137  /// Skip a form's value in \p DebugInfoData at the offset specified by
138  /// \p OffsetPtr.
139  ///
140  /// Skips the bytes for the current form and updates the offset.
141  ///
142  /// \param DebugInfoData The data where we want to skip the value.
143  /// \param OffsetPtr A reference to the offset that will be updated.
144  /// \param Params DWARF parameters to help interpret forms.
145  /// \returns true on success, false if the form was not skipped.
146  bool skipValue(DataExtractor DebugInfoData, uint64_t *OffsetPtr,
147  const dwarf::FormParams Params) const {
148  return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params);
149  }
150 
151  /// Skip a form's value in \p DebugInfoData at the offset specified by
152  /// \p OffsetPtr.
153  ///
154  /// Skips the bytes for the specified form and updates the offset.
155  ///
156  /// \param Form The DW_FORM enumeration that indicates the form to skip.
157  /// \param DebugInfoData The data where we want to skip the value.
158  /// \param OffsetPtr A reference to the offset that will be updated.
159  /// \param FormParams DWARF parameters to help interpret forms.
160  /// \returns true on success, false if the form was not skipped.
161  static bool skipValue(dwarf::Form Form, DataExtractor DebugInfoData,
162  uint64_t *OffsetPtr,
164 
165 private:
166  void dumpString(raw_ostream &OS) const;
167 };
168 
169 namespace dwarf {
170 
171 /// Take an optional DWARFFormValue and try to extract a string value from it.
172 ///
173 /// \param V and optional DWARFFormValue to attempt to extract the value from.
174 /// \returns an optional value that contains a value if the form value
175 /// was valid and was a string.
176 inline std::optional<const char *>
177 toString(const std::optional<DWARFFormValue> &V) {
178  if (!V)
179  return std::nullopt;
180  Expected<const char*> E = V->getAsCString();
181  if (!E) {
182  consumeError(E.takeError());
183  return std::nullopt;
184  }
185  return *E;
186 }
187 
188 /// Take an optional DWARFFormValue and try to extract a string value from it.
189 ///
190 /// \param V and optional DWARFFormValue to attempt to extract the value from.
191 /// \returns an optional value that contains a value if the form value
192 /// was valid and was a string.
193 inline StringRef toStringRef(const std::optional<DWARFFormValue> &V,
194  StringRef Default = {}) {
195  if (!V)
196  return Default;
197  auto S = V->getAsCString();
198  if (!S) {
199  consumeError(S.takeError());
200  return Default;
201  }
202  if (!*S)
203  return Default;
204  return *S;
205 }
206 
207 /// Take an optional DWARFFormValue and extract a string value from it.
208 ///
209 /// \param V and optional DWARFFormValue to attempt to extract the value from.
210 /// \param Default the default value to return in case of failure.
211 /// \returns the string value or Default if the V doesn't have a value or the
212 /// form value's encoding wasn't a string.
213 inline const char *toString(const std::optional<DWARFFormValue> &V,
214  const char *Default) {
215  if (auto E = toString(V))
216  return *E;
217  return Default;
218 }
219 
220 /// Take an optional DWARFFormValue and try to extract an unsigned constant.
221 ///
222 /// \param V and optional DWARFFormValue to attempt to extract the value from.
223 /// \returns an optional value that contains a value if the form value
224 /// was valid and has a unsigned constant form.
225 inline std::optional<uint64_t>
226 toUnsigned(const std::optional<DWARFFormValue> &V) {
227  if (V)
228  return V->getAsUnsignedConstant();
229  return std::nullopt;
230 }
231 
232 /// Take an optional DWARFFormValue and extract a unsigned constant.
233 ///
234 /// \param V and optional DWARFFormValue to attempt to extract the value from.
235 /// \param Default the default value to return in case of failure.
236 /// \returns the extracted unsigned value or Default if the V doesn't have a
237 /// value or the form value's encoding wasn't an unsigned constant form.
238 inline uint64_t toUnsigned(const std::optional<DWARFFormValue> &V,
239  uint64_t Default) {
240  return toUnsigned(V).value_or(Default);
241 }
242 
243 /// Take an optional DWARFFormValue and try to extract an reference.
244 ///
245 /// \param V and optional DWARFFormValue to attempt to extract the value from.
246 /// \returns an optional value that contains a value if the form value
247 /// was valid and has a reference form.
248 inline std::optional<uint64_t>
249 toReference(const std::optional<DWARFFormValue> &V) {
250  if (V)
251  return V->getAsReference();
252  return std::nullopt;
253 }
254 
255 /// Take an optional DWARFFormValue and extract a reference.
256 ///
257 /// \param V and optional DWARFFormValue to attempt to extract the value from.
258 /// \param Default the default value to return in case of failure.
259 /// \returns the extracted reference value or Default if the V doesn't have a
260 /// value or the form value's encoding wasn't a reference form.
261 inline uint64_t toReference(const std::optional<DWARFFormValue> &V,
262  uint64_t Default) {
263  return toReference(V).value_or(Default);
264 }
265 
266 /// Take an optional DWARFFormValue and try to extract an signed constant.
267 ///
268 /// \param V and optional DWARFFormValue to attempt to extract the value from.
269 /// \returns an optional value that contains a value if the form value
270 /// was valid and has a signed constant form.
271 inline std::optional<int64_t> toSigned(const std::optional<DWARFFormValue> &V) {
272  if (V)
273  return V->getAsSignedConstant();
274  return std::nullopt;
275 }
276 
277 /// Take an optional DWARFFormValue and extract a signed integer.
278 ///
279 /// \param V and optional DWARFFormValue to attempt to extract the value from.
280 /// \param Default the default value to return in case of failure.
281 /// \returns the extracted signed integer value or Default if the V doesn't
282 /// have a value or the form value's encoding wasn't a signed integer form.
283 inline int64_t toSigned(const std::optional<DWARFFormValue> &V,
284  int64_t Default) {
285  return toSigned(V).value_or(Default);
286 }
287 
288 /// Take an optional DWARFFormValue and try to extract an address.
289 ///
290 /// \param V and optional DWARFFormValue to attempt to extract the value from.
291 /// \returns an optional value that contains a value if the form value
292 /// was valid and has a address form.
293 inline std::optional<uint64_t>
294 toAddress(const std::optional<DWARFFormValue> &V) {
295  if (V)
296  return V->getAsAddress();
297  return std::nullopt;
298 }
299 
300 inline std::optional<object::SectionedAddress>
301 toSectionedAddress(const std::optional<DWARFFormValue> &V) {
302  if (V)
303  return V->getAsSectionedAddress();
304  return std::nullopt;
305 }
306 
307 /// Take an optional DWARFFormValue and extract a address.
308 ///
309 /// \param V and optional DWARFFormValue to attempt to extract the value from.
310 /// \param Default the default value to return in case of failure.
311 /// \returns the extracted address value or Default if the V doesn't have a
312 /// value or the form value's encoding wasn't an address form.
313 inline uint64_t toAddress(const std::optional<DWARFFormValue> &V,
314  uint64_t Default) {
315  return toAddress(V).value_or(Default);
316 }
317 
318 /// Take an optional DWARFFormValue and try to extract an section offset.
319 ///
320 /// \param V and optional DWARFFormValue to attempt to extract the value from.
321 /// \returns an optional value that contains a value if the form value
322 /// was valid and has a section offset form.
323 inline std::optional<uint64_t>
324 toSectionOffset(const std::optional<DWARFFormValue> &V) {
325  if (V)
326  return V->getAsSectionOffset();
327  return std::nullopt;
328 }
329 
330 /// Take an optional DWARFFormValue and extract a section offset.
331 ///
332 /// \param V and optional DWARFFormValue to attempt to extract the value from.
333 /// \param Default the default value to return in case of failure.
334 /// \returns the extracted section offset value or Default if the V doesn't
335 /// have a value or the form value's encoding wasn't a section offset form.
336 inline uint64_t toSectionOffset(const std::optional<DWARFFormValue> &V,
337  uint64_t Default) {
338  return toSectionOffset(V).value_or(Default);
339 }
340 
341 /// Take an optional DWARFFormValue and try to extract block data.
342 ///
343 /// \param V and optional DWARFFormValue to attempt to extract the value from.
344 /// \returns an optional value that contains a value if the form value
345 /// was valid and has a block form.
346 inline std::optional<ArrayRef<uint8_t>>
347 toBlock(const std::optional<DWARFFormValue> &V) {
348  if (V)
349  return V->getAsBlock();
350  return std::nullopt;
351 }
352 
353 } // end namespace dwarf
354 
355 } // end namespace llvm
356 
357 #endif // LLVM_DEBUGINFO_DWARF_DWARFFORMVALUE_H
llvm::DWARFFormValue::getAsReference
std::optional< uint64_t > getAsReference() const
getAsFoo functions below return the extracted value as Foo if only DWARFFormValue has form class is s...
Definition: DWARFFormValue.cpp:698
llvm::DWARFFormValue::getUnit
const DWARFUnit * getUnit() const
Definition: DWARFFormValue.h:82
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::dwarf::toSigned
std::optional< int64_t > toSigned(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an signed constant.
Definition: DWARFFormValue.h:271
llvm::DWARFFormValue::dumpAddressSection
static void dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS, DIDumpOptions DumpOpts, uint64_t SectionIndex)
Definition: DWARFFormValue.cpp:394
llvm::dwarf::toUnsigned
std::optional< uint64_t > toUnsigned(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an unsigned constant.
Definition: DWARFFormValue.h:226
llvm::dwarf::Form
Form
Definition: Dwarf.h:132
llvm::DWARFFormValue::FC_Constant
@ FC_Constant
Definition: DWARFFormValue.h:33
R600_InstFlag::FC
@ FC
Definition: R600Defines.h:32
llvm::DWARFFormValue::createFromUValue
static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V)
Definition: DWARFFormValue.cpp:88
llvm::DWARFContext
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
Definition: DWARFContext.h:47
llvm::DWARFFormValue::FC_Exprloc
@ FC_Exprloc
Definition: DWARFFormValue.h:39
llvm::dwarf::toSectionedAddress
std::optional< object::SectionedAddress > toSectionedAddress(const std::optional< DWARFFormValue > &V)
Definition: DWARFFormValue.h:301
llvm::Expected
Tagged union holding either a T or a Error.
Definition: APFloat.h:41
llvm::DWARFFormValue::FC_Reference
@ FC_Reference
Definition: DWARFFormValue.h:36
llvm::DWARFDataExtractor
A DataExtractor (typically for an in-memory copy of an object-file section) plus a relocation map for...
Definition: DWARFDataExtractor.h:21
llvm::DWARFFormValue::getAsAddress
std::optional< uint64_t > getAsAddress() const
Definition: DWARFFormValue.cpp:671
llvm::consumeError
void consumeError(Error Err)
Consume a Error without doing anything.
Definition: Error.h:1042
llvm::Data
@ Data
Definition: SIMachineScheduler.h:55
llvm::DWARFFormValue::getAsRelativeReference
std::optional< UnitOffset > getAsRelativeReference() const
Definition: DWARFFormValue.cpp:705
llvm::DWARFFormValue::FC_Indirect
@ FC_Indirect
Definition: DWARFFormValue.h:37
F
#define F(x, y, z)
Definition: MD5.cpp:55
llvm::DWARFFormValue::createFromPValue
static DWARFFormValue createFromPValue(dwarf::Form F, const char *V)
Definition: DWARFFormValue.cpp:92
llvm::DWARFFormValue::getAsFile
std::optional< std::string > getAsFile(DILineInfoSpecifier::FileLineInfoKind Kind) const
Correctly extract any file paths from a form value.
Definition: DWARFFormValue.cpp:778
llvm::DWARFFormValue::DWARFFormValue
DWARFFormValue(dwarf::Form F=dwarf::Form(0))
Definition: DWARFFormValue.h:68
llvm::dwarf::toStringRef
StringRef toStringRef(const std::optional< DWARFFormValue > &V, StringRef Default={})
Take an optional DWARFFormValue and try to extract a string value from it.
Definition: DWARFFormValue.h:193
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::DWARFFormValue::createFromSValue
static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V)
Definition: DWARFFormValue.cpp:84
llvm::DWARFFormValue::getAsBlock
std::optional< ArrayRef< uint8_t > > getAsBlock() const
Definition: DWARFFormValue.cpp:758
E
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
C
(vector float) vec_cmpeq(*A, *B) C
Definition: README_ALTIVEC.txt:86
llvm::DWARFFormValue::FC_SectionOffset
@ FC_SectionOffset
Definition: DWARFFormValue.h:38
llvm::DWARFFormValue::dump
void dump(raw_ostream &OS, DIDumpOptions DumpOpts=DIDumpOptions()) const
Definition: DWARFFormValue.cpp:409
llvm::DWARFFormValue::UnitOffset::Unit
DWARFUnit * Unit
Definition: DWARFFormValue.h:110
llvm::DWARFFormValue::getAsCString
Expected< const char * > getAsCString() const
Definition: DWARFFormValue.cpp:630
llvm::dwarf::toReference
std::optional< uint64_t > toReference(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an reference.
Definition: DWARFFormValue.h:249
llvm::dwarf::toString
std::optional< const char * > toString(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract a string value from it.
Definition: DWARFFormValue.h:177
llvm::DWARFFormValue::getAsUnsignedConstant
std::optional< uint64_t > getAsUnsignedConstant() const
Definition: DWARFFormValue.cpp:732
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
llvm::DWARFObject
Definition: DWARFObject.h:26
llvm::DWARFFormValue
Definition: DWARFFormValue.h:27
llvm::DWARFFormValue::getAsSignedConstant
std::optional< int64_t > getAsSignedConstant() const
Definition: DWARFFormValue.cpp:739
llvm::dwarf::DwarfFormat
DwarfFormat
Constants that define the DWARF format as 32 or 64 bit.
Definition: Dwarf.h:93
llvm::DWARFFormValue::getAsReferenceUVal
std::optional< uint64_t > getAsReferenceUVal() const
Definition: DWARFFormValue.cpp:771
llvm::DWARFFormValue::getAsCStringOffset
std::optional< uint64_t > getAsCStringOffset() const
Definition: DWARFFormValue.cpp:765
llvm::DWARFFormValue::skipValue
bool skipValue(DataExtractor DebugInfoData, uint64_t *OffsetPtr, const dwarf::FormParams Params) const
Skip a form's value in DebugInfoData at the offset specified by OffsetPtr.
Definition: DWARFFormValue.h:146
uint64_t
D
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
llvm::DWARFFormValue::FC_String
@ FC_String
Definition: DWARFFormValue.h:34
llvm::DWARFFormValue::createFromBlockValue
static DWARFFormValue createFromBlockValue(dwarf::Form F, ArrayRef< uint8_t > D)
Definition: DWARFFormValue.cpp:96
llvm::DWARFFormValue::FormClass
FormClass
Definition: DWARFFormValue.h:29
llvm::DILineInfoSpecifier::FileLineInfoKind
FileLineInfoKind
Definition: DIContext.h:141
ArrayRef.h
llvm::dwarf::FormParams
A helper struct providing information about the byte size of DW_FORM values that vary in size dependi...
Definition: Dwarf.h:671
llvm::DWARFFormValue::FC_Block
@ FC_Block
Definition: DWARFFormValue.h:32
llvm::DWARFFormValue::FC_Flag
@ FC_Flag
Definition: DWARFFormValue.h:35
llvm::dwarf::toBlock
std::optional< ArrayRef< uint8_t > > toBlock(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract block data.
Definition: DWARFFormValue.h:347
llvm::ArrayRef< uint8_t >
None.h
llvm::DWARFFormValue::dumpAddress
void dumpAddress(raw_ostream &OS, uint64_t Address) const
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Dwarf.h
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::DWARFFormValue::getRawUValue
uint64_t getRawUValue() const
Definition: DWARFFormValue.h:79
llvm::DWARFFormValue::getAsSectionedAddress
std::optional< object::SectionedAddress > getAsSectionedAddress() const
Definition: DWARFFormValue.cpp:678
llvm::ValueType
PointerUnion< const Value *, const PseudoSourceValue * > ValueType
Definition: ScheduleDAGInstrs.h:107
llvm::PointerUnion< const Value *, const PseudoSourceValue * >
DIContext.h
llvm::DWARFFormValue::getAsSectionOffset
std::optional< uint64_t > getAsSectionOffset() const
Definition: DWARFFormValue.cpp:726
llvm::DWARFUnit
Definition: DWARFUnit.h:206
llvm::DWARFFormValue::extractValue
bool extractValue(const DWARFDataExtractor &Data, uint64_t *OffsetPtr, dwarf::FormParams FormParams, const DWARFUnit *U)
Definition: DWARFFormValue.h:101
DataExtractor.h
llvm::TargetStackID::Value
Value
Definition: TargetFrameLowering.h:27
llvm::DWARFFormValue::FC_Address
@ FC_Address
Definition: DWARFFormValue.h:31
llvm::DWARFFormValue::extractValue
bool extractValue(const DWARFDataExtractor &Data, uint64_t *OffsetPtr, dwarf::FormParams FormParams, const DWARFContext *Context=nullptr, const DWARFUnit *Unit=nullptr)
Extracts a value in Data at offset *OffsetPtr.
Definition: DWARFFormValue.cpp:248
llvm::DWARFFormValue::FC_Unknown
@ FC_Unknown
Definition: DWARFFormValue.h:30
llvm::DataExtractor
Definition: DataExtractor.h:41
llvm::DWARFFormValue::isFormClass
bool isFormClass(FormClass FC) const
Definition: DWARFFormValue.cpp:216
llvm::object::SectionedAddress
Definition: ObjectFile.h:144
llvm::DWARFFormValue::getForm
dwarf::Form getForm() const
Definition: DWARFFormValue.h:78
llvm::DWARFFormValue::createFromUnit
static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit, uint64_t *OffsetPtr)
Definition: DWARFFormValue.cpp:104
llvm::DWARFFormValue::UnitOffset
Definition: DWARFFormValue.h:109
llvm::dwarf::toAddress
std::optional< uint64_t > toAddress(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an address.
Definition: DWARFFormValue.h:294
llvm::dwarf::toSectionOffset
std::optional< uint64_t > toSectionOffset(const std::optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an section offset.
Definition: DWARFFormValue.h:324
llvm::DWARFFormValue::dumpSectionedAddress
void dumpSectionedAddress(raw_ostream &OS, DIDumpOptions DumpOpts, object::SectionedAddress SA) const
Definition: DWARFFormValue.cpp:386
llvm::DWARFFormValue::UnitOffset::Offset
uint64_t Offset
Definition: DWARFFormValue.h:111
llvm::Value
LLVM Value Representation.
Definition: Value.h:74
llvm::dwarf::DWARF32
@ DWARF32
Definition: Dwarf.h:93
llvm::DIDumpOptions
Container for dump options that control which debug information will be dumped.
Definition: DIContext.h:189