diff options
author | Nathan Lanza <nathan@lanza.io> | 2019-03-27 01:24:03 +0000 |
---|---|---|
committer | Nathan Lanza <nathan@lanza.io> | 2019-03-27 01:24:03 +0000 |
commit | d0050d1b8bae9256ebaecd4b6b94877dfa3e7719 (patch) | |
tree | b76d24779a4608a6cde2c070584fe0a8abdcf29a /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | |
parent | ee1a6e70fa555a305bfc56b1743e98b2a615f05c (diff) | |
download | bcm5719-llvm-d0050d1b8bae9256ebaecd4b6b94877dfa3e7719.tar.gz bcm5719-llvm-d0050d1b8bae9256ebaecd4b6b94877dfa3e7719.zip |
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
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp index 2c7ea5b1896..aa831f0bfff 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp @@ -309,7 +309,8 @@ SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc(const PDBSymbolFunc &pdb_func, 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) return nullptr; ClangASTContext *clang_type_system = |