From 1c23c148087c06653d4104c4ac223067ef047968 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 11 Aug 2016 17:28:37 +0000 Subject: [InstrumentationRuntime] Refactor the API (Part 2/N) (NFCI) Factor out some common logic used to find the runtime library in a list of modules. Differential Revision: https://reviews.llvm.org/D23150 llvm-svn: 278368 --- .../ThreadSanitizer/ThreadSanitizerRuntime.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h') diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h index 16516ca8579..fcec0744341 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h +++ b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h @@ -56,17 +56,20 @@ public: return 1; } - void - ModulesDidLoad(lldb_private::ModuleList &module_list) override; - lldb::ThreadCollectionSP GetBacktracesFromExtendedStopInfo(StructuredData::ObjectSP info) override; private: ThreadSanitizerRuntime(const lldb::ProcessSP &process_sp) : lldb_private::InstrumentationRuntime(process_sp) {} + const RegularExpression & + GetPatternForRuntimeLibrary() override; + + bool + CheckIfRuntimeIsValid(const lldb::ModuleSP module_sp) override; + void - Activate(); + Activate() override; void Deactivate(); -- cgit v1.2.3