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/include/lldb/API/SBSection.h b/include/lldb/API/SBSection.h
index a71086b..04a3815 100644
--- a/include/lldb/API/SBSection.h
+++ b/include/lldb/API/SBSection.h
@@ -32,6 +32,9 @@
     bool
     IsValid () const;
 
+    const char *
+    GetName ();
+    
     lldb::SBSection
     FindSubSection (const char *sect_name);
 
diff --git a/scripts/Python/interface/SBSection.i b/scripts/Python/interface/SBSection.i
index 27b329e..a206b34 100644
--- a/scripts/Python/interface/SBSection.i
+++ b/scripts/Python/interface/SBSection.i
@@ -26,6 +26,9 @@
     bool
     IsValid () const;
 
+    const char *
+    GetName ();
+
     lldb::SBSection
     FindSubSection (const char *sect_name);
 
diff --git a/source/API/SBBreakpointLocation.cpp b/source/API/SBBreakpointLocation.cpp
index c5a2def..20e4ac8 100644
--- a/source/API/SBBreakpointLocation.cpp
+++ b/source/API/SBBreakpointLocation.cpp
@@ -9,6 +9,7 @@
 
 #include "lldb/API/SBBreakpointLocation.h"
 #include "lldb/API/SBDefines.h"
+#include "lldb/API/SBAddress.h"
 #include "lldb/API/SBDebugger.h"
 #include "lldb/API/SBStream.h"
 
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)
 {