From 5c2bf577dcd34b0f4a20360d411e410d739b752f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 31 Mar 2020 10:43:22 -0700 Subject: [PATCH] [lldb/API] Add missing reproducer instrumentation to GetHostPlatform. SBPlatform::GetHostPlatform was missing the reproducer instrumentation macros. Fixed by running lldb-instr on SBPlatform.cpp: $ ./bin/lldb-instr ../llvm-project/lldb/source/API/SBPlatform.cpp --- lldb/source/API/SBPlatform.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lldb/source/API/SBPlatform.cpp b/lldb/source/API/SBPlatform.cpp index ddb77f4..7ac8524 100644 --- a/lldb/source/API/SBPlatform.cpp +++ b/lldb/source/API/SBPlatform.cpp @@ -306,9 +306,12 @@ SBPlatform &SBPlatform::operator=(const SBPlatform &rhs) { SBPlatform::~SBPlatform() = default; SBPlatform SBPlatform::GetHostPlatform() { + LLDB_RECORD_STATIC_METHOD_NO_ARGS(lldb::SBPlatform, SBPlatform, + GetHostPlatform); + SBPlatform host_platform; host_platform.m_opaque_sp = Platform::GetHostPlatform(); - return host_platform; + return LLDB_RECORD_RESULT(host_platform); } bool SBPlatform::IsValid() const { @@ -756,6 +759,8 @@ void RegisterMethods(Registry &R) { LLDB_REGISTER_METHOD(lldb::SBEnvironment, SBPlatform, GetEnvironment, ()); LLDB_REGISTER_METHOD_CONST(lldb::SBUnixSignals, SBPlatform, GetUnixSignals, ()); + LLDB_REGISTER_STATIC_METHOD(lldb::SBPlatform, SBPlatform, GetHostPlatform, + ()); } } -- 2.7.4