Home | History | Annotate | Download | only in DWARF

Lines Matching refs:DWARFFormValue

1 //===- DWARFFormValue.h -----------------------------------------*- C++ -*-===//
26 /// A helper struct for DWARFFormValue methods, providing information that
55 class DWARFFormValue {
88 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {}
123 /// DWARFFormValue has form class is suitable for representing Foo.
158 return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params);
180 /// Take an optional DWARFFormValue and try to extract a string value from it.
182 /// \param V and optional DWARFFormValue to attempt to extract the value from.
185 inline Optional<const char *> toString(const Optional<DWARFFormValue> &V) {
191 /// Take an optional DWARFFormValue and extract a string value from it.
193 /// \param V and optional DWARFFormValue to attempt to extract the value from.
197 inline const char *toString(const Optional<DWARFFormValue> &V,
202 /// Take an optional DWARFFormValue and try to extract an unsigned constant.
204 /// \param V and optional DWARFFormValue to attempt to extract the value from.
207 inline Optional<uint64_t> toUnsigned(const Optional<DWARFFormValue> &V) {
213 /// Take an optional DWARFFormValue and extract a unsigned constant.
215 /// \param V and optional DWARFFormValue to attempt to extract the value from.
219 inline uint64_t toUnsigned(const Optional<DWARFFormValue> &V,
224 /// Take an optional DWARFFormValue and try to extract an reference.
226 /// \param V and optional DWARFFormValue to attempt to extract the value from.
229 inline Optional<uint64_t> toReference(const Optional<DWARFFormValue> &V) {
235 /// Take an optional DWARFFormValue and extract a reference.
237 /// \param V and optional DWARFFormValue to attempt to extract the value from.
241 inline uint64_t toReference(const Optional<DWARFFormValue> &V,
246 /// Take an optional DWARFFormValue and try to extract an signed constant.
248 /// \param V and optional DWARFFormValue to attempt to extract the value from.
251 inline Optional<int64_t> toSigned(const Optional<DWARFFormValue> &V) {
257 /// Take an optional DWARFFormValue and extract a signed integer.
259 /// \param V and optional DWARFFormValue to attempt to extract the value from.
263 inline int64_t toSigned(const Optional<DWARFFormValue> &V, int64_t Default) {
267 /// Take an optional DWARFFormValue and try to extract an address.
269 /// \param V and optional DWARFFormValue to attempt to extract the value from.
272 inline Optional<uint64_t> toAddress(const Optional<DWARFFormValue> &V) {
278 /// Take an optional DWARFFormValue and extract a address.
280 /// \param V and optional DWARFFormValue to attempt to extract the value from.
284 inline uint64_t toAddress(const Optional<DWARFFormValue> &V, uint64_t Default) {
288 /// Take an optional DWARFFormValue and try to extract an section offset.
290 /// \param V and optional DWARFFormValue to attempt to extract the value from.
293 inline Optional<uint64_t> toSectionOffset(const Optional<DWARFFormValue> &V) {
299 /// Take an optional DWARFFormValue and extract a section offset.
301 /// \param V and optional DWARFFormValue to attempt to extract the value from.
305 inline uint64_t toSectionOffset(const Optional<DWARFFormValue> &V,
310 /// Take an optional DWARFFormValue and try to extract block data.
312 /// \param V and optional DWARFFormValue to attempt to extract the value from.
315 inline Optional<ArrayRef<uint8_t>> toBlock(const Optional<DWARFFormValue> &V) {