Home | History | Annotate | Download | only in DWARF

Lines Matching refs:DWARFFormValue

1 //===- DWARFFormValue.h -----------------------------------------*- C++ -*-===//
25 class DWARFFormValue {
59 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {}
90 /// DWARFFormValue has form class is suitable for representing Foo.
183 /// Take an optional DWARFFormValue and try to extract a string value from it.
185 /// \param V and optional DWARFFormValue to attempt to extract the value from.
188 inline Optional<const char*> toString(const Optional<DWARFFormValue>& V) {
194 /// Take an optional DWARFFormValue and extract a string value from it.
196 /// \param V and optional DWARFFormValue to attempt to extract the value from.
201 toString(const Optional<DWARFFormValue>& V, const char *Default) {
205 /// Take an optional DWARFFormValue and try to extract an unsigned constant.
207 /// \param V and optional DWARFFormValue to attempt to extract the value from.
210 inline Optional<uint64_t> toUnsigned(const Optional<DWARFFormValue>& V) {
216 /// Take an optional DWARFFormValue and extract a unsigned constant.
218 /// \param V and optional DWARFFormValue to attempt to extract the value from.
223 toUnsigned(const Optional<DWARFFormValue>& V, uint64_t Default) {
227 /// Take an optional DWARFFormValue and try to extract an reference.
229 /// \param V and optional DWARFFormValue to attempt to extract the value from.
232 inline Optional<uint64_t> toReference(const Optional<DWARFFormValue>& V) {
238 /// Take an optional DWARFFormValue and extract a reference.
240 /// \param V and optional DWARFFormValue to attempt to extract the value from.
245 toReference(const Optional<DWARFFormValue>& V, uint64_t Default) {
249 /// Take an optional DWARFFormValue and try to extract an signed constant.
251 /// \param V and optional DWARFFormValue to attempt to extract the value from.
254 inline Optional<int64_t> toSigned(const Optional<DWARFFormValue>& V) {
260 /// Take an optional DWARFFormValue and extract a signed integer.
262 /// \param V and optional DWARFFormValue to attempt to extract the value from.
267 toSigned(const Optional<DWARFFormValue>& V, int64_t Default) {
271 /// Take an optional DWARFFormValue and try to extract an address.
273 /// \param V and optional DWARFFormValue to attempt to extract the value from.
276 inline Optional<uint64_t> toAddress(const Optional<DWARFFormValue>& V) {
282 /// Take an optional DWARFFormValue and extract a address.
284 /// \param V and optional DWARFFormValue to attempt to extract the value from.
289 toAddress(const Optional<DWARFFormValue>& V, uint64_t Default) {
293 /// Take an optional DWARFFormValue and try to extract an section offset.
295 /// \param V and optional DWARFFormValue to attempt to extract the value from.
298 inline Optional<uint64_t> toSectionOffset(const Optional<DWARFFormValue>& V) {
304 /// Take an optional DWARFFormValue and extract a section offset.
306 /// \param V and optional DWARFFormValue to attempt to extract the value from.
311 toSectionOffset(const Optional<DWARFFormValue>& V, uint64_t Default) {
315 /// Take an optional DWARFFormValue and try to extract block data.
317 /// \param V and optional DWARFFormValue to attempt to extract the value from.
321 toBlock(const Optional<DWARFFormValue>& V) {