DebugInfo: Remove unnecessary API from DIDerivedType and DIType
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 15 Apr 2015 23:49:09 +0000 (23:49 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 15 Apr 2015 23:49:09 +0000 (23:49 +0000)
commit7c020713160581410cd0431146c26cbc20f5e6cf
tree46aa3a2404f9f7755a417d9c03debe5e4381cbd7
parented0e117ff38559aba99eb7a02187e3bf07e55488
DebugInfo: Remove unnecessary API from DIDerivedType and DIType

Remove the accessors of `DIDerivedType` that downcast to
`MDDerivedType`, shifting the `cast<MDDerivedType>` into the callers.
Also remove `DIType::isValid()`, which is really just a check against
`nullptr` at this point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235059 91177308-0d34-0410-b5e6-96231b3b80d8
examples/Kaleidoscope/Chapter8/toy.cpp
include/llvm/IR/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp