From 8dec40764924823d668efa562fa6028916368ec8 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 19 Sep 2013 20:40:26 +0000 Subject: 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 --- llvm/lib/Support/Dwarf.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'llvm/lib/Support/Dwarf.cpp') 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; -} -- cgit v1.2.3