Add SBWatchpoint::GetError() API, which is not currently populated as yet.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141979 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBWatchpoint.cpp b/source/API/SBWatchpoint.cpp
index e3f9d8c..de43364 100644
--- a/source/API/SBWatchpoint.cpp
+++ b/source/API/SBWatchpoint.cpp
@@ -86,25 +86,19 @@
 bool
 SBWatchpoint::IsValid() const
 {
-    return m_opaque_sp.get() != NULL;
-#if 0
-    if (m_opaque_sp)
-        return m_opaque_sp->GetError().Success();
+    if (m_opaque_sp && m_opaque_sp->GetError().Success())
+        return true;
     return false;
-#endif
 }
 
 SBError
 SBWatchpoint::GetError ()
 {
     SBError sb_error;
-#if 0
     if (m_opaque_sp)
     {
-        // TODO: Johnny fill this in
-        sb_error.ref() = m_opaque_sp->GetError();
+        sb_error.SetError(m_opaque_sp->GetError());
     }
-#endif
     return sb_error;
 }