DI: Simplify DebugInfoFinder::processType(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 20:56:10 +0000 (20:56 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 20:56:10 +0000 (20:56 +0000)
commit24b6acf9719e4cae19a2b9cdb3fd32e074b19c7a
treece8650aa72bd902eba051d8392ab05b294d90b8a
parent0567cb7e1aed86bdbfdf2f8575984874426e6465
DI: Simplify DebugInfoFinder::processType(), NFC

Handle `DISubroutineType` up-front rather than as part of a branch for
`DICompositeTypeBase`.  The only shared code path was looking through
the base type, but `DISubroutineType` can never have a base type.

This also removes the last use of `DICompositeTypeBase`, since we can
strengthen the cast to `DICompositeType`.

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