[Symbol] Improve Variable::GetLanguage
authorAlex Langford <apl@fb.com>
Mon, 22 Jul 2019 20:14:18 +0000 (20:14 +0000)
committerAlex Langford <apl@fb.com>
Mon, 22 Jul 2019 20:14:18 +0000 (20:14 +0000)
commit4de5d9d61213d2b69557cb969862412d743114f7
treeded80fee7ba3fa1c58006c420730c7ef68b7a2b9
parent510e6fadaae95a41bee0eb99d84a146efc612365
[Symbol] Improve Variable::GetLanguage

Summary:
When trying to ascertain what language a variable belongs to, just
checking the compilation unit is often not enough. In r364845 I added a way to
check for a variable's language type, but didn't put it in Variable itself.
Let's go ahead and put it in Variable.

Reviewers: jingham, clayborg

Subscribers: jdoerfert, lldb-commits

Differential Revision: https://reviews.llvm.org/D64042

llvm-svn: 366733
lldb/source/Core/ValueObject.cpp
lldb/source/Symbol/Variable.cpp