[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
This commit is contained in:
Jonas Devlieghere 2020-03-31 10:43:22 -07:00
parent 7fca0e9797
commit 5c2bf577dc
1 changed files with 6 additions and 1 deletions

View File

@ -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,
());
}
}