mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 18:16:42 +00:00
Revert "[LLDB] Expose checking if the symbol file exists/is loaded via SBModule" (#134341)
Reverts llvm/llvm-project#134163 Reverting while @clayborg and I come up with a better API
This commit is contained in:
parent
897f9a51b9
commit
8e7d6baf0e
@ -290,9 +290,6 @@ public:
|
||||
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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user