Skip to content

Commit 416b749

Browse files
author
Bar Soloveychik
committed
changed to GetObjectName()
1 parent c8e1fcc commit 416b749

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lldb/include/lldb/API/SBModule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ class LLDB_API SBModule {
296296
/// Remove any global modules which are no longer needed.
297297
static void GarbageCollectAllocatedModules();
298298

299-
/// Return the name of the module.
300-
const char *GetName() const;
299+
/// Return the name of the module (m_object_name).
300+
const char *GetObjectName() const;
301301

302302
private:
303303
friend class SBAddress;

lldb/source/API/SBModule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,10 @@ void SBModule::GarbageCollectAllocatedModules() {
672672
ModuleList::RemoveOrphanSharedModules(mandatory);
673673
}
674674

675-
const char *SBModule::GetName() const {
675+
const char *SBModule::GetObjectName() const {
676676
LLDB_INSTRUMENT_VA(this);
677677

678678
if (!m_opaque_sp)
679679
return nullptr;
680-
m_opaque_sp->GetObjectFile();
681680
return m_opaque_sp->GetObjectName().AsCString();
682681
}

0 commit comments

Comments
 (0)