[llvm-branch-commits] [lldb] e789e78 - Revert "[LLDB] Expose checking if the symbol file exists/is loaded via SBModu…"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 3 20:45:35 PDT 2025


Author: Jacob Lalonde
Date: 2025-04-03T20:45:32-07:00
New Revision: e789e78d20c0dfe70d4e977b259460f1c8008515

URL: https://github.com/llvm/llvm-project/commit/e789e78d20c0dfe70d4e977b259460f1c8008515
DIFF: https://github.com/llvm/llvm-project/commit/e789e78d20c0dfe70d4e977b259460f1c8008515.diff

LOG: Revert "[LLDB] Expose checking if the symbol file exists/is loaded via SBModu…"

This reverts commit b8d8405238387ddd92450d6a3ad84350254e76a3.

Added: 
    

Modified: 
    lldb/include/lldb/API/SBModule.h
    lldb/source/API/SBModule.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/API/SBModule.h b/lldb/include/lldb/API/SBModule.h
index 651455bdb78d2..85332066ee687 100644
--- a/lldb/include/lldb/API/SBModule.h
+++ b/lldb/include/lldb/API/SBModule.h
@@ -290,9 +290,6 @@ class LLDB_API SBModule {
   lldb::SBAddress GetObjectFileHeaderAddress() const;
   lldb::SBAddress GetObjectFileEntryPointAddress() const;
 
-  /// Get if the symbol file for this module is loaded.
-  bool IsDebugInfoLoaded() const;
-
   /// Get the number of global modules.
   static uint32_t GetNumberAllocatedModules();
 

diff  --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index 4978a553f57c7..985107ec68efd 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -659,18 +659,6 @@ lldb::SBAddress SBModule::GetObjectFileEntryPointAddress() const {
   return sb_addr;
 }
 
-bool SBModule::IsDebugInfoLoaded() const {
-  LLDB_INSTRUMENT_VA(this);
-
-  ModuleSP module_sp(GetSP());
-  if (module_sp) {
-    SymbolFile *sym_file = module_sp->GetSymbolFile(/*create=*/false);
-    return sym_file && sym_file->GetLoadDebugInfoEnabled();
-  }
-
-  return false;
-}
-
 uint32_t SBModule::GetNumberAllocatedModules() {
   LLDB_INSTRUMENT();
 


        


More information about the llvm-branch-commits mailing list