Author: Jonas Devlieghere Date: 2020-03-31T10:45:25-07:00 New Revision: 5c2bf577dcd34b0f4a20360d411e410d739b752f
URL: https://github.com/llvm/llvm-project/commit/5c2bf577dcd34b0f4a20360d411e410d739b752f DIFF: https://github.com/llvm/llvm-project/commit/5c2bf577dcd34b0f4a20360d411e410d739b752f.diff LOG: [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 Added: Modified: lldb/source/API/SBPlatform.cpp Removed: ################################################################################ diff --git a/lldb/source/API/SBPlatform.cpp b/lldb/source/API/SBPlatform.cpp index ddb77f4f008a..7ac852488ffb 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<SBPlatform>(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, + ()); } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits