Skip to content

Commit

Permalink
Revert "[lldb/Expression] Make Language() const, NFC"
Browse files Browse the repository at this point in the history
This reverts commit 88d9e43. Revert an
accidental commit.
  • Loading branch information
vedantk committed May 4, 2020
1 parent 88d9e43 commit 47e9fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lldb/include/lldb/Expression/Expression.h
Expand Up @@ -51,9 +51,7 @@ class Expression {

/// Return the language that should be used when parsing. To use the
/// default, return eLanguageTypeUnknown.
virtual lldb::LanguageType Language() const {
return lldb::eLanguageTypeUnknown;
}
virtual lldb::LanguageType Language() { return lldb::eLanguageTypeUnknown; }

/// Return the Materializer that the parser should use when registering
/// external values.
Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Expression/UserExpression.h
Expand Up @@ -194,7 +194,7 @@ class UserExpression : public Expression {

/// Return the language that should be used when parsing. To use the
/// default, return eLanguageTypeUnknown.
lldb::LanguageType Language() const override { return m_language; }
lldb::LanguageType Language() override { return m_language; }

/// Return the desired result type of the function, or eResultTypeAny if
/// indifferent.
Expand Down

0 comments on commit 47e9fd4

Please sign in to comment.