DIBuilder: Change a few helpers to return downcasted MDNodes
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 27 Mar 2015 00:34:10 +0000 (00:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 27 Mar 2015 00:34:10 +0000 (00:34 +0000)
commit9f2b49c5219ff512d3033d6cbaa2467621d03e26
treeefae31b9a57facb092cd6337869935633930e5fe
parent50b75d5804fe530a5985d25e0e19dffb166dfcc4
DIBuilder: Change a few helpers to return downcasted MDNodes

Change `getNonCompileUnitScope()` to return `MDScope` and
`getConstantAsMetadata()` to return `ConstantAsMetadata`.  This will
make it easier to start requiring more type safety in the debug info
hierarchy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/DIBuilder.cpp