summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBSection.cpp')
-rw-r--r--lldb/source/API/SBSection.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp
index 6d665962465..2636dd02136 100644
--- a/lldb/source/API/SBSection.cpp
+++ b/lldb/source/API/SBSection.cpp
@@ -128,6 +128,15 @@ SBSection::IsValid () const
return m_opaque_ap.get() != NULL && m_opaque_ap->IsValid();
}
+const char *
+SBSection::GetName ()
+{
+ if (IsValid())
+ return m_opaque_ap->GetSection()->GetName().GetCString();
+ return NULL;
+}
+
+
lldb::SBSection
SBSection::FindSubSection (const char *sect_name)
{
OpenPOWER on IntegriCloud