diff options
Diffstat (limited to 'lldb/include/lldb/Target/LanguageRuntime.h')
-rw-r--r-- | lldb/include/lldb/Target/LanguageRuntime.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/lldb/include/lldb/Target/LanguageRuntime.h b/lldb/include/lldb/Target/LanguageRuntime.h index 73c8dfa3874d..b0b9b919911a 100644 --- a/lldb/include/lldb/Target/LanguageRuntime.h +++ b/lldb/include/lldb/Target/LanguageRuntime.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef liblldb_LanguageRuntime_h_ -#define liblldb_LanguageRuntime_h_ +#ifndef LLDB_TARGET_LANGUAGERUNTIME_H +#define LLDB_TARGET_LANGUAGERUNTIME_H #include "lldb/Breakpoint/BreakpointResolver.h" #include "lldb/Breakpoint/BreakpointResolverName.h" @@ -21,8 +21,6 @@ #include "lldb/lldb-private.h" #include "lldb/lldb-public.h" -#include "clang/Basic/TargetOptions.h" - namespace lldb_private { class ExceptionSearchFilter : public SearchFilter { @@ -53,7 +51,7 @@ protected: LanguageRuntime *m_language_runtime; lldb::SearchFilterSP m_filter_sp; - lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override; + lldb::SearchFilterSP DoCreateCopy() override; void UpdateModuleListIfNeeded(); }; @@ -136,7 +134,8 @@ public: virtual DeclVendor *GetDeclVendor() { return nullptr; } virtual lldb::BreakpointResolverSP - CreateExceptionResolver(Breakpoint *bkpt, bool catch_bp, bool throw_bp) = 0; + CreateExceptionResolver(const lldb::BreakpointSP &bkpt, + bool catch_bp, bool throw_bp) = 0; virtual lldb::SearchFilterSP CreateExceptionSearchFilter() { return m_process->GetTarget().GetSearchFilterForModule(nullptr); @@ -154,7 +153,7 @@ public: /// Identify whether a name is a runtime value that should not be hidden by /// from the user interface. - virtual bool IsWhitelistedRuntimeValue(ConstString name) { return false; } + virtual bool IsAllowedRuntimeValue(ConstString name) { return false; } virtual llvm::Optional<CompilerType> GetRuntimeType(CompilerType base_type) { return llvm::None; @@ -162,13 +161,6 @@ public: virtual void ModulesDidLoad(const ModuleList &module_list) {} - // Called by the Clang expression evaluation engine to allow runtimes to - // alter the set of target options provided to the compiler. If the options - // prototype is modified, runtimes must return true, false otherwise. - virtual bool GetOverrideExprOptions(clang::TargetOptions &prototype) { - return false; - } - // Called by ClangExpressionParser::PrepareForExecution to query for any // custom LLVM IR passes that need to be run before an expression is // assembled and run. @@ -193,9 +185,10 @@ protected: Process *m_process; private: - DISALLOW_COPY_AND_ASSIGN(LanguageRuntime); + LanguageRuntime(const LanguageRuntime &) = delete; + const LanguageRuntime &operator=(const LanguageRuntime &) = delete; }; } // namespace lldb_private -#endif // liblldb_LanguageRuntime_h_ +#endif // LLDB_TARGET_LANGUAGERUNTIME_H |