mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-31 09:25:42 +00:00
DebugInfo: llvm-dwarfdump support for gnu_pubnames section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -821,19 +821,18 @@ StringRef GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage);
|
||||
/// offset of the cu within the debug_info section stored in those 24 bits.
|
||||
struct PubIndexEntryDescriptor {
|
||||
GDBIndexEntryKind Kind;
|
||||
GDBIndexEntryLinkage Static;
|
||||
PubIndexEntryDescriptor(GDBIndexEntryKind Kind, GDBIndexEntryLinkage Static)
|
||||
: Kind(Kind), Static(Static) {}
|
||||
GDBIndexEntryLinkage Linkage;
|
||||
PubIndexEntryDescriptor(GDBIndexEntryKind Kind, GDBIndexEntryLinkage Linkage)
|
||||
: Kind(Kind), Linkage(Linkage) {}
|
||||
/* implicit */ PubIndexEntryDescriptor(GDBIndexEntryKind Kind)
|
||||
: Kind(Kind), Static(GIEL_EXTERNAL) {}
|
||||
: Kind(Kind), Linkage(GIEL_EXTERNAL) {}
|
||||
explicit PubIndexEntryDescriptor(uint8_t Value)
|
||||
: Kind(static_cast<GDBIndexEntryKind>((Value & KIND_MASK) >>
|
||||
KIND_OFFSET)),
|
||||
Static(static_cast<GDBIndexEntryLinkage>((Value & LINKAGE_MASK) >>
|
||||
LINKAGE_OFFSET)) {}
|
||||
uint8_t toBits() {
|
||||
return Kind << KIND_OFFSET | Static << LINKAGE_OFFSET;
|
||||
}
|
||||
Linkage(static_cast<GDBIndexEntryLinkage>((Value & LINKAGE_MASK) >>
|
||||
LINKAGE_OFFSET)) {}
|
||||
uint8_t toBits() { return Kind << KIND_OFFSET | Linkage << LINKAGE_OFFSET; }
|
||||
|
||||
private:
|
||||
enum {
|
||||
KIND_OFFSET = 4,
|
||||
|
Reference in New Issue
Block a user