[Lldb-commits] [lldb] [lldb] Add SBCompileUnit::GetIndex (PR #222470)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 9 15:47:00 PDT 2026
================
@@ -68,6 +68,10 @@ class LLDB_API SBCompileUnit {
lldb::LanguageType GetLanguage();
+ /// Return the index of this compile unit in its module, or
+ /// LLDB_INVALID_INDEX32 if invalid.
+ uint32_t GetIndex() const;
----------------
bulbazord wrote:
Actually, maybe this should be called `GetIndexInModule`? I'm not sure if there's any other interpretation of `Index` here but it would be more explicit.
https://github.com/llvm/llvm-project/pull/222470
More information about the lldb-commits
mailing list