LLVM
10.0.0
include
llvm
DebugInfo
DWARF
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
"
13
#include "
llvm/Object/RelocationResolver.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.
20
struct
RelocAddrEntry
{
21
uint64_t
SectionIndex
;
22
object::RelocationRef
Reloc
;
23
uint64_t
SymbolValue
;
24
Optional<object::RelocationRef>
Reloc2
;
25
uint64_t
SymbolValue2
;
26
object::RelocationResolver
Resolver
;
27
};
28
29
/// In place of applying the relocations to the data we've read from disk we use
30
/// a separate mapping table to the side and checking that at locations in the
31
/// dwarf where we expect relocated values. This adds a bit of complexity to the
32
/// dwarf parsing/extraction at the benefit of not allocating memory for the
33
/// entire size of the debug info sections.
34
using
RelocAddrMap
=
DenseMap<uint64_t, RelocAddrEntry>
;
35
36
}
// end namespace llvm
37
38
#endif // LLVM_DEBUGINFO_DWARF_DWARFRELOCMAP_H
llvm::RelocAddrEntry::Resolver
object::RelocationResolver Resolver
Definition:
DWARFRelocMap.h:26
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::DenseMap
Definition:
DenseMap.h:684
llvm::RelocAddrEntry::SymbolValue
uint64_t SymbolValue
Definition:
DWARFRelocMap.h:23
llvm::RelocAddrEntry::Reloc2
Optional< object::RelocationRef > Reloc2
Definition:
DWARFRelocMap.h:24
llvm::Optional
Definition:
APInt.h:33
llvm::object::RelocationRef
This is a value type class that represents a single relocation in the list of relocations in the obje...
Definition:
ObjectFile.h:52
llvm::RelocAddrEntry::Reloc
object::RelocationRef Reloc
Definition:
DWARFRelocMap.h:22
llvm::RelocAddrEntry::SymbolValue2
uint64_t SymbolValue2
Definition:
DWARFRelocMap.h:25
DenseMap.h
llvm::RelocAddrEntry::SectionIndex
uint64_t SectionIndex
Definition:
DWARFRelocMap.h:21
llvm::RelocAddrEntry
RelocAddrEntry contains relocated value and section index.
Definition:
DWARFRelocMap.h:20
RelocationResolver.h
llvm::object::RelocationResolver
uint64_t(*)(RelocationRef R, uint64_t S, uint64_t A) RelocationResolver
Definition:
RelocationResolver.h:34
Generated on Tue Mar 24 2020 13:08:03 for LLVM by
1.8.13