[llvm] Add verification support for .debug_names with foreign type units. (PR #109011)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 17:15:03 PDT 2024
================
@@ -1598,7 +1588,7 @@ unsigned DWARFVerifier::verifyNameIndexEntries(
for (; EntryOr; ++NumEntries, EntryID = NextEntryID,
EntryOr = NI.getEntry(&NextEntryID)) {
- std::optional<uint64_t> CUIndex = EntryOr->getCUIndex();
+ std::optional<uint64_t> CUIndex = EntryOr->getRelatedCUIndex();
std::optional<uint64_t> TUIndex = EntryOr->getLocalTUIndex();
----------------
jeffreytan81 wrote:
Should the API be renamed from `getLocalTUIndex()` be `getTUIndex()` since the returned index can be either local or foreign type unit index now?
https://github.com/llvm/llvm-project/pull/109011
More information about the llvm-commits
mailing list