Support: Add dwarf::getLanguage()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-06 22:55:13 +00:00
parent e0916cdbc4
commit 81bb18728b
3 changed files with 33 additions and 1 deletions

View File

@@ -755,8 +755,16 @@ const char *GDBIndexEntryKindString(GDBIndexEntryKind Kind);
const char *GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage);
/// @}
/// \brief Get the tag number associated with a tag string.
/// \defgroup DwarfConstantsParsing Dwarf constants parsing functions
///
/// These functions map their strings back to the corresponding enumeration
/// value or return 0 if there is none. As an exception, \a getTag() returns
/// \a DW_TAG_invalid on invalid input.
///
/// @{
unsigned getTag(StringRef TagString);
unsigned getLanguage(StringRef LanguageString);
/// @}
/// \brief Returns the symbolic string representing Val when used as a value
/// for attribute Attr.