DwarfDebug: Minor refactoring around type unit construction
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 26 Apr 2014 16:26:41 +0000 (16:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 26 Apr 2014 16:26:41 +0000 (16:26 +0000)
commitf95477d11fde13740664ef5a89dd5180d20ec121
tree66af5ce09173b89d487336553b35848599fb4ea6
parentd9ced7112e85a566999276099aef5f2ddf6735b7
DwarfDebug: Minor refactoring around type unit construction

Sinking addition of the declaration attribute down to where the
signature is added. So that if the signature is not added neither is the
declaration attribute (this will come in handy when aborting type unit
construction to instead emit the type into the CU directly in some
cases)

Pull out type unit identifier hashing just to simplify the function a
little, it'll be getting longer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp