Add APIs on SBFunction and SBCompileUnit to inquire about the language type that the function/compile unit is defined in
llvm-svn: 222189
diff --git a/lldb/scripts/Python/interface/SBCompileUnit.i b/lldb/scripts/Python/interface/SBCompileUnit.i
index a7e76cb..6147791 100644
--- a/lldb/scripts/Python/interface/SBCompileUnit.i
+++ b/lldb/scripts/Python/interface/SBCompileUnit.i
@@ -106,6 +106,9 @@
lldb::SBTypeList
GetTypes (uint32_t type_mask = lldb::eTypeClassAny);
+ lldb::LanguageType
+ GetLanguage ();
+
bool
GetDescription (lldb::SBStream &description);
diff --git a/lldb/scripts/Python/interface/SBFunction.i b/lldb/scripts/Python/interface/SBFunction.i
index 33cc448..d3660af 100644
--- a/lldb/scripts/Python/interface/SBFunction.i
+++ b/lldb/scripts/Python/interface/SBFunction.i
@@ -82,6 +82,9 @@
lldb::SBBlock
GetBlock ();
+
+ lldb::LanguageType
+ GetLanguage ();
bool
GetDescription (lldb::SBStream &description);