diff options
Diffstat (limited to 'source/API/SBCompileUnit.cpp')
-rw-r--r-- | source/API/SBCompileUnit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/API/SBCompileUnit.cpp b/source/API/SBCompileUnit.cpp index 03c2571..5d904ce 100644 --- a/source/API/SBCompileUnit.cpp +++ b/source/API/SBCompileUnit.cpp @@ -228,6 +228,14 @@ SBCompileUnit::FindSupportFileIndex (uint32_t start_idx, const SBFileSpec &sb_fi return 0; } +lldb::LanguageType +SBCompileUnit::GetLanguage () +{ + if (m_opaque_ptr) + return m_opaque_ptr->GetLanguage(); + return lldb::eLanguageTypeUnknown; +} + bool SBCompileUnit::IsValid () const { |