[Lldb-commits] [lldb] 47e9fd4 - Revert "[lldb/Expression] Make Language() const, NFC"
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Mon May 4 14:03:36 PDT 2020
Author: Vedant Kumar
Date: 2020-05-04T14:03:22-07:00
New Revision: 47e9fd47c71830e7a8987ef633f827cf4aff38fc
URL: https://github.com/llvm/llvm-project/commit/47e9fd47c71830e7a8987ef633f827cf4aff38fc
DIFF: https://github.com/llvm/llvm-project/commit/47e9fd47c71830e7a8987ef633f827cf4aff38fc.diff
LOG: Revert "[lldb/Expression] Make Language() const, NFC"
This reverts commit 88d9e4326f48041056c4db3506d30574c6e1d83c. Revert an
accidental commit.
Added:
Modified:
lldb/include/lldb/Expression/Expression.h
lldb/include/lldb/Expression/UserExpression.h
Removed:
################################################################################
diff --git a/lldb/include/lldb/Expression/Expression.h b/lldb/include/lldb/Expression/Expression.h
index aaac889e6ed2..1e4453de04ff 100644
--- a/lldb/include/lldb/Expression/Expression.h
+++ b/lldb/include/lldb/Expression/Expression.h
@@ -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.
diff --git a/lldb/include/lldb/Expression/UserExpression.h b/lldb/include/lldb/Expression/UserExpression.h
index 8236c417f73a..8f3a505addea 100644
--- a/lldb/include/lldb/Expression/UserExpression.h
+++ b/lldb/include/lldb/Expression/UserExpression.h
@@ -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
/// in
diff erent.
More information about the lldb-commits
mailing list