Export the ability to see if a symbol is externally visible and also if the symbol was synthetically added to the symbol table (the symbol was not part of the symbol table itself but came from another section).



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@153893 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBSymbol.i b/scripts/Python/interface/SBSymbol.i
index 0b5342a..4995c4f 100644
--- a/scripts/Python/interface/SBSymbol.i
+++ b/scripts/Python/interface/SBSymbol.i
@@ -52,7 +52,13 @@
 
     bool
     GetDescription (lldb::SBStream &description);
-    
+
+    bool
+    IsExternal();
+
+    bool
+    IsSynthetic();
+
     %pythoncode %{
         def get_instructions_from_current_target (self):
             return self.GetInstructions (target)
@@ -77,6 +83,13 @@
         
         __swig_getmethods__["instructions"] = get_instructions_from_current_target
         if _newclass: x = property(get_instructions_from_current_target, None)
+
+        __swig_getmethods__["external"] = IsExternal
+        if _newclass: x = property(IsExternal, None)
+
+        __swig_getmethods__["synthetic"] = IsSynthetic
+        if _newclass: x = property(IsSynthetic, None)
+
         
     %}