9#ifndef LLVM_DWARFLINKER_RELOCATIONFIXUPS_H
10#define LLVM_DWARFLINKER_RELOCATIONFIXUPS_H
77 std::optional<DebugAddrEntry>
Entry;
91 const AttributeSource &Source);
99 DebugAddrFixups.push_back({Entry,
false});
103 DebugAddrTableOffset =
Offset;
111 return DIEFixups.empty() && DebugInfoFixups.empty() &&
112 DebugAddrFixups.empty();
119 struct DebugInfoFixup {
123 int64_t LinkedOffset;
126 struct DebugAddrFixup {
127 DebugAddrEntry Entry;
132 SmallVector<DebugInfoFixup> DIEFixups;
133 SmallVector<DebugInfoFixup> DebugInfoFixups;
134 SmallVector<DebugAddrFixup> DebugAddrFixups;
135 std::optional<uint64_t> DebugAddrTableOffset;
This file contains constants used for implementing Dwarf debug support.
This file defines the SmallVector class.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
AddressesMap represents information about valid addresses used by debug information.
void addOutputPrefix(uint64_t Size)
Moves the operations by Size, the bytes the attribute has ahead of the expression.
ClonedExpression(uint64_t InputSize)
void noteDebugAddrOperand(uint64_t EntryOffset, uint8_t AddrSize, uint64_t OutputOffset)
void noteCopiedBytes(uint64_t InputStart, uint64_t Size, uint64_t OutputOffset)
uint64_t InputSize
The size of the input expression, which ends its attribute.
SmallVector< Operation, 2 > Operations
Where the attributes of a unit were cloned to, so that their relocations can be saved once the output...
void noteDebugAddrEntry(DebugAddrEntry Entry)
Notes that a location list operation kept an index into .debug_addr.
LLVM_ABI void noteAttribute(dwarf::Tag Tag, dwarf::Attribute Attr, uint64_t InputStart, uint64_t InputEnd, uint64_t OutputOffset, const AttributeSource &Source)
Notes that the attribute Attr of a DIE tagged Tag was cloned from [InputStart, InputEnd) of ....
LLVM_ABI void save(AddressesMap &Addresses, uint64_t UnitOffset, uint8_t AddrSize) const
Saves the relocations, for the unit at UnitOffset in the input.
LLVM_ABI void finishDIE(uint64_t AbbrevNumberSize)
Completes the attributes noted since the previous call, once the DIE has an abbreviation number.
void setDebugAddrTableOffset(uint64_t Offset)
RelocSectionKind
The debug sections holding relocations which the linker can save.
This is an optimization pass for GlobalISel generic memory operations.
DWARFExpression::Operation Op
What an attribute being cloned was cloned from.
std::optional< DebugAddrEntry > Entry
std::optional< ClonedExpression > Expression
RelocSectionKind InputSection
uint64_t InputStart
In .debug_addr, or from the start of the input expression.
uint64_t OutputOffset
From the start of the output expression, or of the attribute after addOutputPrefix().
An address attribute cloned from one .debug_addr entry into another.
uint64_t OutputIndex
In the address table of the output unit.