[lldb/Expression] Make Language() const, NFC

Allow Language() to be called from const methods within UserExpression.
This commit is contained in:
Vedant Kumar 2020-05-04 12:59:39 -07:00
parent 97db238c17
commit 9e35498046
2 changed files with 4 additions and 2 deletions

View File

@ -51,7 +51,9 @@ public:
/// Return the language that should be used when parsing. To use the
/// default, return eLanguageTypeUnknown.
virtual lldb::LanguageType Language() { return lldb::eLanguageTypeUnknown; }
virtual lldb::LanguageType Language() const {
return lldb::eLanguageTypeUnknown;
}
/// Return the Materializer that the parser should use when registering
/// external values.

View File

@ -194,7 +194,7 @@ public:
/// Return the language that should be used when parsing. To use the
/// default, return eLanguageTypeUnknown.
lldb::LanguageType Language() override { return m_language; }
lldb::LanguageType Language() const override { return m_language; }
/// Return the desired result type of the function, or eResultTypeAny if
/// indifferent.