[Lldb-commits] [lldb] [lldb][NFC] Remove unused method Module::SetUUID (PR #178803)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 29 16:47:42 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alex Langford (bulbazord)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/178803.diff
2 Files Affected:
- (modified) lldb/include/lldb/Core/Module.h (-2)
- (modified) lldb/source/Core/Module.cpp (-10)
``````````diff
diff --git a/lldb/include/lldb/Core/Module.h b/lldb/include/lldb/Core/Module.h
index 10c5982ac3c2b..f46b3a13f4f18 100644
--- a/lldb/include/lldb/Core/Module.h
+++ b/lldb/include/lldb/Core/Module.h
@@ -1102,8 +1102,6 @@ class Module : public std::enable_shared_from_this<Module>,
bool SetArchitecture(const ArchSpec &new_arch);
- void SetUUID(const lldb_private::UUID &uuid);
-
SectionList *GetUnifiedSectionList();
friend class ModuleList;
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 0cce30a4f210f..659190833c20d 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -360,16 +360,6 @@ const lldb_private::UUID &Module::GetUUID() {
return m_uuid;
}
-void Module::SetUUID(const lldb_private::UUID &uuid) {
- std::lock_guard<std::recursive_mutex> guard(m_mutex);
- if (!m_did_set_uuid) {
- m_uuid = uuid;
- m_did_set_uuid = true;
- } else {
- lldbassert(0 && "Attempting to overwrite the existing module UUID");
- }
-}
-
llvm::Expected<TypeSystemSP>
Module::GetTypeSystemForLanguage(LanguageType language) {
return m_type_system_map.GetTypeSystemForLanguage(language, this, true);
``````````
</details>
https://github.com/llvm/llvm-project/pull/178803
More information about the lldb-commits
mailing list