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
This commit is contained in:
Duncan P. N. Exon Smith
2015-04-17 16:28:58 +00:00
parent 6aa30ccfdb
commit 7c554b51ea
2 changed files with 15 additions and 15 deletions

View File

@@ -153,8 +153,7 @@ public:
}
/// \brief Lower this entry into a DWARF expression.
void finalize(const AsmPrinter &AP,
const DITypeIdentifierMap &TypeIdentifierMap);
void finalize(const AsmPrinter &AP, const MDBasicType *TypeIdentifierMap);
/// \brief Return the lowered DWARF expression.
StringRef getDWARFBytes() const { return DWARFBytes; }