mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user