diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-11-12 10:04:32 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-11-12 10:04:32 +0100 |
commit | 52f3a2faf92c4d8efd0e626d52d5f64b7c5d468f (patch) | |
tree | aab0cd053518d6dab7704fd4e3d7d72469bf8710 /lldb/source/Expression/FunctionCaller.cpp | |
parent | 6cc853b416a2b0d0b435d145988c5d3b6faaa712 (diff) | |
download | bcm5719-llvm-52f3a2faf92c4d8efd0e626d52d5f64b7c5d468f.tar.gz bcm5719-llvm-52f3a2faf92c4d8efd0e626d52d5f64b7c5d468f.zip |
[lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable
Summary:
swift-lldb currently has to patch the ExpressionKind enum to add support for Swift expressions. If we implement LLVM's RTTI
with a static ID variable instead of a centralised enum we can drop that patch.
Reviewers: labath, davide
Reviewed By: labath
Subscribers: JDevlieghere, lldb-commits
Tags: #upstreaming_lldb_s_downstream_patches, #lldb
Differential Revision: https://reviews.llvm.org/D70070
Diffstat (limited to 'lldb/source/Expression/FunctionCaller.cpp')
-rw-r--r-- | lldb/source/Expression/FunctionCaller.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Expression/FunctionCaller.cpp b/lldb/source/Expression/FunctionCaller.cpp index 203cfff63d8..dc80c8169d7 100644 --- a/lldb/source/Expression/FunctionCaller.cpp +++ b/lldb/source/Expression/FunctionCaller.cpp @@ -29,14 +29,16 @@ using namespace lldb_private; +char FunctionCaller::ID; + // FunctionCaller constructor FunctionCaller::FunctionCaller(ExecutionContextScope &exe_scope, const CompilerType &return_type, const Address &functionAddress, const ValueList &arg_value_list, const char *name) - : Expression(exe_scope, eKindFunctionCaller), m_execution_unit_sp(), - m_parser(), m_jit_module_wp(), m_name(name ? name : "<unknown>"), + : Expression(exe_scope), m_execution_unit_sp(), m_parser(), + m_jit_module_wp(), m_name(name ? name : "<unknown>"), m_function_ptr(nullptr), m_function_addr(functionAddress), m_function_return_type(return_type), m_wrapper_function_name("__lldb_caller_function"), |