mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
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:
1 parent
d970702ab3
commit
6cd8e0c9b0
6 files changed
+30
No files matched your search
@@ -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