IR: Add debug info flag string conversions
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 21 Feb 2015 00:43:09 +0000 (00:43 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 21 Feb 2015 00:43:09 +0000 (00:43 +0000)
commitc22a5c2c6c519d9a5d25bc52b8b26ccebff62264
tree5815fb10a35b7e2d5a4499c83d63b96390db8f6f
parentee1b391275d13bc1cee933af634b9bae77f439e1
IR: Add debug info flag string conversions

Add `DIDescriptor::getFlag(StringRef)` and
`DIDescriptor::getFlagString(unsigned)`.  The latter only converts exact
matches; I'll add separate API for breaking the flags bitfield up into
parts.

llvm-svn: 230107
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp
llvm/unittests/IR/DebugInfoTest.cpp