Support: Add string => unsigned mapping for DW_TAG
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 3 Feb 2015 21:16:49 +0000 (21:16 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 3 Feb 2015 21:16:49 +0000 (21:16 +0000)
commit5ff000f15e2d5b04565ed2ec73efe178e9e1b185
tree8ef0b7d52f009612f21bc086c84a665fa2fd806a
parentb3d53c60653ebd134c3ea11181d1c188ddd2db25
Support: Add string => unsigned mapping for DW_TAG

Add `dwarf::getTag()` to translate from `StringRef` to `unsigned`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228031 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Dwarf.h
lib/Support/Dwarf.cpp
unittests/Support/DwarfTest.cpp