DebugInfo: Make MDSubprogram::getFunction() return Constant
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 20:27:40 +0000 (20:27 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 20:27:40 +0000 (20:27 +0000)
commite2e641234fd4749ffa548bd18c9697b8eb066eef
tree0b0f955acc79ea7396187980dc718b043e3f4fc1
parent3ec16b419f8101ea195b7cc05ee152b9156becea
DebugInfo: Make MDSubprogram::getFunction() return Constant

Change `MDSubprogram::getFunction()` and
`MDGlobalVariable::getConstant()` to return a `Constant`.  Previously,
both returned `ConstantAsMetadata`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234699 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/DebugInfoMetadata.h
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
lib/IR/DebugInfoMetadata.cpp
lib/IR/Verifier.cpp
unittests/IR/MetadataTest.cpp