Get the lang from the CompileUnit for ParseCompileUnitFunctionForPDBFunc
authorNathan Lanza <nathan@lanza.io>
Wed, 27 Mar 2019 01:24:03 +0000 (01:24 +0000)
committerNathan Lanza <nathan@lanza.io>
Wed, 27 Mar 2019 01:24:03 +0000 (01:24 +0000)
commitd0050d1b8bae9256ebaecd4b6b94877dfa3e7719
treeb76d24779a4608a6cde2c070584fe0a8abdcf29a
parentee1a6e70fa555a305bfc56b1743e98b2a615f05c
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
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp