diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-07 16:26:40 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-09 21:40:55 -0800 |
commit | d51402ac6b802dbc17402135067d302853b34252 (patch) | |
tree | e2820c4353a99c60c294c528b03fa78c5685bcc2 /lldb/source/API/SBModule.cpp | |
parent | 4a8549354c1b77ce830e488ceefa05dfb4bc9325 (diff) | |
download | llvm-d51402ac6b802dbc17402135067d302853b34252.zip llvm-d51402ac6b802dbc17402135067d302853b34252.tar.gz llvm-d51402ac6b802dbc17402135067d302853b34252.tar.bz2 |
[lldb] Remove reproducer instrumentation
This patch removes most of the reproducer instrumentation. It keeps
around the LLDB_RECORD_* macros for logging. See [1] for more details.
[1] https://lists.llvm.org/pipermail/lldb-dev/2021-September/017045.html
Differential revision: https://reviews.llvm.org/D116847
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r-- | lldb/source/API/SBModule.cpp | 78 |
1 files changed, 1 insertions, 77 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index ed17e8f..defb08f 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "lldb/API/SBModule.h" -#include "SBReproducerPrivate.h" +#include "lldb/Utility/ReproducerInstrumentation.h" #include "lldb/API/SBAddress.h" #include "lldb/API/SBFileSpec.h" #include "lldb/API/SBModuleSpec.h" @@ -695,79 +695,3 @@ void SBModule::GarbageCollectAllocatedModules() { const bool mandatory = false; ModuleList::RemoveOrphanSharedModules(mandatory); } - -namespace lldb_private { -namespace repro { - -template <> void RegisterMethods<SBModule>(Registry &R) { - LLDB_REGISTER_CONSTRUCTOR(SBModule, ()); - LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModuleSpec &)); - LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModule &)); - LLDB_REGISTER_CONSTRUCTOR(SBModule, (lldb::SBProcess &, lldb::addr_t)); - LLDB_REGISTER_METHOD(const lldb::SBModule &, SBModule, operator=, - (const lldb::SBModule &)); - LLDB_REGISTER_METHOD_CONST(bool, SBModule, IsValid, ()); - LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator bool, ()); - LLDB_REGISTER_METHOD(void, SBModule, Clear, ()); - LLDB_REGISTER_METHOD_CONST(lldb::SBFileSpec, SBModule, GetFileSpec, ()); - LLDB_REGISTER_METHOD_CONST(lldb::SBFileSpec, SBModule, GetPlatformFileSpec, - ()); - LLDB_REGISTER_METHOD(bool, SBModule, SetPlatformFileSpec, - (const lldb::SBFileSpec &)); - LLDB_REGISTER_METHOD(lldb::SBFileSpec, SBModule, GetRemoteInstallFileSpec, - ()); - LLDB_REGISTER_METHOD(bool, SBModule, SetRemoteInstallFileSpec, - (lldb::SBFileSpec &)); - LLDB_REGISTER_METHOD_CONST(const char *, SBModule, GetUUIDString, ()); - LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator==, - (const lldb::SBModule &)); - LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator!=, - (const lldb::SBModule &)); - LLDB_REGISTER_METHOD(lldb::SBAddress, SBModule, ResolveFileAddress, - (lldb::addr_t)); - LLDB_REGISTER_METHOD(lldb::SBSymbolContext, SBModule, - ResolveSymbolContextForAddress, - (const lldb::SBAddress &, uint32_t)); - LLDB_REGISTER_METHOD(bool, SBModule, GetDescription, (lldb::SBStream &)); - LLDB_REGISTER_METHOD(uint32_t, SBModule, GetNumCompileUnits, ()); - LLDB_REGISTER_METHOD(lldb::SBCompileUnit, SBModule, GetCompileUnitAtIndex, - (uint32_t)); - LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindCompileUnits, - (const lldb::SBFileSpec &)); - LLDB_REGISTER_METHOD(size_t, SBModule, GetNumSymbols, ()); - LLDB_REGISTER_METHOD(lldb::SBSymbol, SBModule, GetSymbolAtIndex, (size_t)); - LLDB_REGISTER_METHOD(lldb::SBSymbol, SBModule, FindSymbol, - (const char *, lldb::SymbolType)); - LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindSymbols, - (const char *, lldb::SymbolType)); - LLDB_REGISTER_METHOD(size_t, SBModule, GetNumSections, ()); - LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, GetSectionAtIndex, (size_t)); - LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindFunctions, - (const char *, uint32_t)); - LLDB_REGISTER_METHOD(lldb::SBValueList, SBModule, FindGlobalVariables, - (lldb::SBTarget &, const char *, uint32_t)); - LLDB_REGISTER_METHOD(lldb::SBValue, SBModule, FindFirstGlobalVariable, - (lldb::SBTarget &, const char *)); - LLDB_REGISTER_METHOD(lldb::SBType, SBModule, FindFirstType, (const char *)); - LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetBasicType, (lldb::BasicType)); - LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, FindTypes, (const char *)); - LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetTypeByID, (lldb::user_id_t)); - LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, GetTypes, (uint32_t)); - LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, FindSection, (const char *)); - LLDB_REGISTER_METHOD(lldb::ByteOrder, SBModule, GetByteOrder, ()); - LLDB_REGISTER_METHOD(const char *, SBModule, GetTriple, ()); - LLDB_REGISTER_METHOD(uint32_t, SBModule, GetAddressByteSize, ()); - LLDB_REGISTER_METHOD(uint32_t, SBModule, GetVersion, (uint32_t *, uint32_t)); - LLDB_REGISTER_METHOD_CONST(lldb::SBFileSpec, SBModule, GetSymbolFileSpec, ()); - LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule, - GetObjectFileHeaderAddress, ()); - LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule, - GetObjectFileEntryPointAddress, ()); - LLDB_REGISTER_STATIC_METHOD(uint32_t, SBModule, GetNumberAllocatedModules, - ()); - LLDB_REGISTER_STATIC_METHOD(void, SBModule, GarbageCollectAllocatedModules, - ()); -} - -} // namespace repro -} // namespace lldb_private |