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)
commit2e19fabc2637638f74aaf7f41581cac0b2cfa48c
treedf575306f55a0a7f591042551f5b7003346421a5
parent5eba20419834cf4462a334f32ea6e47e3583f6e9
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230107 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
lib/IR/DebugInfo.cpp
unittests/IR/DebugInfoTest.cpp