summaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-19 23:01:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-19 23:01:29 +0000
commit994c37fcb001bc5a53bf2c676009b327b882d765 (patch)
tree5e8e0f8fc2404ad657e5156c81141adf98426b3d /include/llvm/Support
parentceb3b4649086c4aa6aa535440748c5860093f6e6 (diff)
downloadllvm-994c37fcb001bc5a53bf2c676009b327b882d765.tar.gz
llvm-994c37fcb001bc5a53bf2c676009b327b882d765.tar.bz2
llvm-994c37fcb001bc5a53bf2c676009b327b882d765.tar.xz
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
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/Dwarf.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h
index 30f268c651..7b87c6a90d 100644
--- a/include/llvm/Support/Dwarf.h
+++ b/include/llvm/Support/Dwarf.h
@@ -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,