DI: Clarify isUnsignedDIType(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 19:42:12 +0000 (19:42 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 19:42:12 +0000 (19:42 +0000)
commit89c5e6ff490f57016b4f1950d3482b31a9ae099c
treeacd93058ca9ee010c56ee674c7328e45078d7b2f
parent57cb9919c5ee3d7d4edd3d49d52b49e10589887b
DI: Clarify isUnsignedDIType(), NFC

Refactor `isUnsignedDIType()` to deal with `DICompositeType` explicitly.
Since `DW_TAG_subroutine_type` isn't handled here (the assertions about
tags rule it out), this allows strengthening the `dyn_cast` to
`DIDerivedType`.

Besides making the code clearer, this it removes a use of
`DIDerivedTypeBase`.

llvm-svn: 243148
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp