LLVM  9.0.0svn
DWARFRelocMap.h
Go to the documentation of this file.
1 //===- DWARFRelocMap.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_DWARFRELOCMAP_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFRELOCMAP_H
11 
12 #include "llvm/ADT/DenseMap.h"
14 #include <cstdint>
15 
16 namespace llvm {
17 
18 /// RelocAddrEntry contains relocated value and section index.
19 /// Section index is -1LL if relocation points to absolute symbol.
21  uint64_t SectionIndex;
24  uint64_t SymbolValue;
25 };
26 
27 /// In place of applying the relocations to the data we've read from disk we use
28 /// a separate mapping table to the side and checking that at locations in the
29 /// dwarf where we expect relocated values. This adds a bit of complexity to the
30 /// dwarf parsing/extraction at the benefit of not allocating memory for the
31 /// entire size of the debug info sections.
33 
34 } // end namespace llvm
35 
36 #endif // LLVM_DEBUGINFO_DWARF_DWARFRELOCMAP_H
object::RelocationResolver Resolver
Definition: DWARFRelocMap.h:23
This class represents lattice values for constants.
Definition: AllocatorList.h:23
This is a value type class that represents a single relocation in the list of relocations in the obje...
Definition: ObjectFile.h:52
object::RelocationRef Reloc
Definition: DWARFRelocMap.h:22
RelocAddrEntry contains relocated value and section index.
Definition: DWARFRelocMap.h:20
uint64_t(*)(RelocationRef R, uint64_t S, uint64_t A) RelocationResolver