aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-05 18:20:16 +0000
committerEric Christopher <echristo@gmail.com>2013-09-05 18:20:16 +0000
commitcf7289f6d9ffcc2b55aa73ec0cc3fd9c649b9778 (patch)
treedf3c2ed7a3325cb60ac5bcb45bc1b30abac35e49 /llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
parent8f60cdd54b2a3450ffe749bee7972f5820119da0 (diff)
downloadllvm-cf7289f6d9ffcc2b55aa73ec0cc3fd9c649b9778.zip
llvm-cf7289f6d9ffcc2b55aa73ec0cc3fd9c649b9778.tar.gz
llvm-cf7289f6d9ffcc2b55aa73ec0cc3fd9c649b9778.tar.bz2
Move accelerator table defines and constants to Dwarf.h since
we're proposing it for DWARF5. No functional change intended. llvm-svn: 190074
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
index 1de644a4f..689aeda 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
@@ -24,24 +24,6 @@
using namespace llvm;
-const char *DwarfAccelTable::Atom::AtomTypeString(enum AtomType AT) {
- switch (AT) {
- case eAtomTypeNULL:
- return "eAtomTypeNULL";
- case eAtomTypeDIEOffset:
- return "eAtomTypeDIEOffset";
- case eAtomTypeCUOffset:
- return "eAtomTypeCUOffset";
- case eAtomTypeTag:
- return "eAtomTypeTag";
- case eAtomTypeNameFlags:
- return "eAtomTypeNameFlags";
- case eAtomTypeTypeFlags:
- return "eAtomTypeTypeFlags";
- }
- llvm_unreachable("invalid AtomType!");
-}
-
// The length of the header data is always going to be 4 + 4 + 4*NumAtoms.
DwarfAccelTable::DwarfAccelTable(ArrayRef<DwarfAccelTable::Atom> atomList)
: Header(8 + (atomList.size() * 4)), HeaderData(atomList),
@@ -134,7 +116,7 @@ void DwarfAccelTable::EmitHeader(AsmPrinter *Asm) {
Asm->EmitInt32(HeaderData.Atoms.size());
for (size_t i = 0; i < HeaderData.Atoms.size(); i++) {
Atom A = HeaderData.Atoms[i];
- Asm->OutStreamer.AddComment(Atom::AtomTypeString(A.type));
+ Asm->OutStreamer.AddComment(dwarf::AtomTypeString(A.type));
Asm->EmitInt16(A.type);
Asm->OutStreamer.AddComment(dwarf::FormEncodingString(A.form));
Asm->EmitInt16(A.form);