Add APIs on SBFunction and SBCompileUnit to inquire about the language type that the function/compile unit is defined in
llvm-svn: 222189
This commit is contained in:
@@ -227,5 +227,15 @@ SBFunction::GetBlock ()
|
||||
return sb_block;
|
||||
}
|
||||
|
||||
lldb::LanguageType
|
||||
SBFunction::GetLanguage ()
|
||||
{
|
||||
if (m_opaque_ptr)
|
||||
{
|
||||
if (m_opaque_ptr->GetCompileUnit())
|
||||
return m_opaque_ptr->GetCompileUnit()->GetLanguage();
|
||||
}
|
||||
return lldb::eLanguageTypeUnknown;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user