forked from OSchip/llvm-project
Get the lang from the CompileUnit for ParseCompileUnitFunctionForPDBFunc
Summary: Instead of assuming that the language is C++ instead check the compunit for the language it received from the debug info. Subscribers: aprantl, jdoerfert Differential Revision: https://reviews.llvm.org/D59805 llvm-svn: 357044
This commit is contained in:
parent
ee1a6e70fa
commit
d0050d1b8b
|
@ -309,7 +309,8 @@ SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc(const PDBSymbolFunc &pdb_func,
|
||||||
|
|
||||||
comp_unit.AddFunction(func_sp);
|
comp_unit.AddFunction(func_sp);
|
||||||
|
|
||||||
TypeSystem *type_system = GetTypeSystemForLanguage(lldb::eLanguageTypeC_plus_plus);
|
LanguageType lang = ParseLanguage(comp_unit);
|
||||||
|
TypeSystem *type_system = GetTypeSystemForLanguage(lang);
|
||||||
if (!type_system)
|
if (!type_system)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
ClangASTContext *clang_type_system =
|
ClangASTContext *clang_type_system =
|
||||||
|
|
Loading…
Reference in New Issue