Fixed build issues after recent checkin.
Added the ability to get the name of the SBSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140444 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBSection.cpp b/source/API/SBSection.cpp
index 6d66596..2636dd0 100644
--- a/source/API/SBSection.cpp
+++ b/source/API/SBSection.cpp
@@ -128,6 +128,15 @@
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)
{