summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-19 20:40:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-19 20:40:26 +0000
commit8dec40764924823d668efa562fa6028916368ec8 (patch)
tree2561e23003c46ac1c9f2747965609b07b729c36b /llvm/lib/Support
parent87cfa71071d73c702a833f19c9fe035f31c1275d (diff)
downloadbcm5719-llvm-8dec40764924823d668efa562fa6028916368ec8.tar.gz
bcm5719-llvm-8dec40764924823d668efa562fa6028916368ec8.zip
Unshift the GDB index/GNU pubnames constants modified in r191025
Based on code review feedback from Eric Christopher, unshifting these constants as they can appear in the gdb_index itself, shifted a further 24 bits. This means that keeping them preshifted is a bit inflexible, so let's not do that. Given the motivation, wrap up some nicer enums, more type safety, and some utility functions. llvm-svn: 191035
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Dwarf.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index 5c780ddc2b8..3bacdd35793 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -739,26 +739,3 @@ const char *llvm::dwarf::AtomTypeString(unsigned AT) {
}
return 0;
}
-
-const char *llvm::dwarf::GDBIndexTypeString(unsigned Kind) {
- switch (Kind) {
- case GDB_INDEX_SYMBOL_KIND_NONE:
- return "case GDB_INDEX_SYMBOL_KIND_NONE";
- case GDB_INDEX_SYMBOL_KIND_TYPE:
- return "case GDB_INDEX_SYMBOL_KIND_TYPE";
- case GDB_INDEX_SYMBOL_KIND_VARIABLE:
- return "case GDB_INDEX_SYMBOL_KIND_VARIABLE";
- case GDB_INDEX_SYMBOL_KIND_FUNCTION:
- return "case GDB_INDEX_SYMBOL_KIND_FUNCTION";
- case GDB_INDEX_SYMBOL_KIND_OTHER:
- return "case GDB_INDEX_SYMBOL_KIND_OTHER";
- // 3 unused bits.
- case GDB_INDEX_SYMBOL_KIND_UNUSED5:
- return "case GDB_INDEX_SYMBOL_KIND_UNUSED5";
- case GDB_INDEX_SYMBOL_KIND_UNUSED6:
- return "case GDB_INDEX_SYMBOL_KIND_UNUSED6";
- case GDB_INDEX_SYMBOL_KIND_UNUSED7:
- return "case GDB_INDEX_SYMBOL_KIND_UNUSED7";
- }
- return 0;
-}
OpenPOWER on IntegriCloud