Use dwarf::Tag rather than unsigned for DIE::Tag to make debugging easier.
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 12 Apr 2014 02:24:04 +0000 (02:24 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 12 Apr 2014 02:24:04 +0000 (02:24 +0000)
commit9c9ef05445e4ebaf56e70f61e3fdcabc0ddcffc0
treed866c7010ac92204be9d2f10ea6b1a571191d187
parentac871732b529d36a05b0fb669e34b7be80d354d0
Use dwarf::Tag rather than unsigned for DIE::Tag to make debugging easier.

Nice to be able to just print out the Tag and have the debugger print
dwarf::DW_TAG_subprogram or whatever, rather than an int.

It's a bit finicky (for example DIDescriptor::getTag still returns
unsigned) because some places still handle real dwarf tags + our fake
tags (one day we'll remove the fake tags, hopefully).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp