LLVM: include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_DWARF_DWARFDATAEXTRACTOR_H

10#define LLVM_DEBUGINFO_DWARF_DWARFDATAEXTRACTOR_H

11

18

19namespace llvm {

20

21

22

26

27public:

29

30

31

33 bool IsLittleEndian, uint8_t AddressSize)

35 Obj(&Obj), Section(&Section) {}

36

37

42

43

44

46 Error *Err) const {

47 if (SecNdx)

49 if (!Section)

52 std::optional E = Obj->find(*Section, *Off);

54 if (E || (Err && *Err))

55 return LocData;

56 if (SecNdx)

57 *SecNdx = E->SectionIndex;

58

60 E->SymbolValue, LocData);

61 if (E->Reloc2)

63 R);

64 return R;

65 }

66};

67

68}

69

70#endif

static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")

This file contains constants used for implementing Dwarf debug support.

static StringRef substr(StringRef Str, uint64_t Len)

Helper for Errors used as out-parameters.

Lightweight error class with error context and mandatory checking.

LLVM_ABI uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R, uint64_t S, uint64_t LocData)

This is an optimization pass for GlobalISel generic memory operations.

FunctionAddr VTableAddr uintptr_t uintptr_t Data

static const uint64_t UndefSection