diff options
Diffstat (limited to 'source/API/SBBlock.cpp')
-rw-r--r-- | source/API/SBBlock.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/API/SBBlock.cpp b/source/API/SBBlock.cpp index c8a665f..fdbbbc0 100644 --- a/source/API/SBBlock.cpp +++ b/source/API/SBBlock.cpp @@ -75,7 +75,15 @@ SBBlock::GetInlinedName () const { const InlineFunctionInfo* inlined_info = m_opaque_ptr->GetInlinedFunctionInfo (); if (inlined_info) - return inlined_info->GetName().AsCString (NULL); + { + Function *function = m_opaque_ptr->CalculateSymbolContextFunction(); + LanguageType language; + if (function) + language = function->GetLanguage(); + else + language = lldb::eLanguageTypeUnknown; + return inlined_info->GetName(language).AsCString (NULL); + } } return NULL; } |