Skip to content

Commit 8e7d6ba

Browse files
authored
Revert "[LLDB] Expose checking if the symbol file exists/is loaded via SBModule" (#134341)
Reverts #134163 Reverting while @clayborg and I come up with a better API
1 parent 897f9a5 commit 8e7d6ba

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lldb/include/lldb/API/SBModule.h

-3
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,6 @@ class LLDB_API SBModule {
290290
lldb::SBAddress GetObjectFileHeaderAddress() const;
291291
lldb::SBAddress GetObjectFileEntryPointAddress() const;
292292

293-
/// Get if the symbol file for this module is loaded.
294-
bool IsDebugInfoLoaded() const;
295-
296293
/// Get the number of global modules.
297294
static uint32_t GetNumberAllocatedModules();
298295

lldb/source/API/SBModule.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -659,18 +659,6 @@ lldb::SBAddress SBModule::GetObjectFileEntryPointAddress() const {
659659
return sb_addr;
660660
}
661661

662-
bool SBModule::IsDebugInfoLoaded() const {
663-
LLDB_INSTRUMENT_VA(this);
664-
665-
ModuleSP module_sp(GetSP());
666-
if (module_sp) {
667-
SymbolFile *sym_file = module_sp->GetSymbolFile(/*create=*/false);
668-
return sym_file && sym_file->GetLoadDebugInfoEnabled();
669-
}
670-
671-
return false;
672-
}
673-
674662
uint32_t SBModule::GetNumberAllocatedModules() {
675663
LLDB_INSTRUMENT();
676664

0 commit comments

Comments
 (0)