AsmPrinter: Calculate type upfront for location lists, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 17 Apr 2015 16:28:58 +0000 (16:28 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 17 Apr 2015 16:28:58 +0000 (16:28 +0000)
commit7c554b51eac89f5d0a384746bf372818d9828eeb
tree3bc037ba34666e4a909172449763d0af9ddf6b81
parent6aa30ccfdb076642390e07cfae96ad4dbc7842b5
AsmPrinter: Calculate type upfront for location lists, NFC

We can calculate the variable type up front before calling
`DebugLocEntry::finalize()`.  In fact, since we only care about the type
if it's an `MDBasicType`, don't even bother resolving it using the type
identifier map.

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