summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-09 20:03:11 +0000
committerEric Christopher <echristo@gmail.com>2013-09-09 20:03:11 +0000
commitd4ad5e32a61da5eb046cc109a2bb7c68cc06745f (patch)
tree5f6fcf7e3dec0051e3ac5db0208f0222308fc583 /include
parent8e54341935c475d2ea4b64da9933c0103cb83842 (diff)
downloadllvm-d4ad5e32a61da5eb046cc109a2bb7c68cc06745f.tar.gz
llvm-d4ad5e32a61da5eb046cc109a2bb7c68cc06745f.tar.bz2
llvm-d4ad5e32a61da5eb046cc109a2bb7c68cc06745f.tar.xz
Add constant defines for gnu pubnames and gnu pubtypes - they're used
for the gdb index as the names convey. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Dwarf.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h
index 0e00761bf3..a31c3f131b 100644
--- a/include/llvm/Support/Dwarf.h
+++ b/include/llvm/Support/Dwarf.h
@@ -789,6 +789,23 @@ enum AcceleratorTable {
/// AtomTypeString - Return the string for the specified Atom type.
const char *AtomTypeString(unsigned Atom);
+// Constants for the GNU pubnames/pubtypes extensions supporting gdb index.
+enum GDBIndex {
+ // Special value to indicate no attributes are present.
+ GDB_INDEX_SYMBOL_KIND_NONE = 0,
+ GDB_INDEX_SYMBOL_KIND_TYPE = 1,
+ GDB_INDEX_SYMBOL_KIND_VARIABLE = 2,
+ GDB_INDEX_SYMBOL_KIND_FUNCTION = 3,
+ GDB_INDEX_SYMBOL_KIND_OTHER = 4,
+ // 3 unused bits.
+ GDB_INDEX_SYMBOL_KIND_UNUSED5 = 5,
+ GDB_INDEX_SYMBOL_KIND_UNUSED6 = 6,
+ GDB_INDEX_SYMBOL_KIND_UNUSED7 = 7
+};
+
+/// GDBIndexTypeString - Return the string for the specified index type.
+const char *GDBIndexTypeString(unsigned Kind);
+
} // End of namespace dwarf
} // End of namespace llvm