forked from OSchip/llvm-project
[MSan] Prepare for splitting msan_new_delete.cc into a separate library. NFC.
llvm-svn: 235926
This commit is contained in:
parent
d99829481c
commit
042a069b25
|
@ -360,8 +360,6 @@ void __msan_init() {
|
|||
InitializeInterceptors();
|
||||
InstallAtExitHandler(); // Needs __cxa_atexit interceptor.
|
||||
|
||||
if (MSAN_REPLACE_OPERATORS_NEW_AND_DELETE)
|
||||
ReplaceOperatorsNewAndDelete();
|
||||
DisableCoreDumperIfNecessary();
|
||||
if (StackSizeIsUnlimited()) {
|
||||
VPrintf(1, "Unlimited stack, doing reexec\n");
|
||||
|
|
|
@ -131,7 +131,6 @@ void *MsanReallocate(StackTrace *stack, void *oldp, uptr size,
|
|||
void MsanDeallocate(StackTrace *stack, void *ptr);
|
||||
void InstallTrapHandler();
|
||||
void InstallAtExitHandler();
|
||||
void ReplaceOperatorsNewAndDelete();
|
||||
|
||||
const char *GetStackOriginDescr(u32 id, uptr *pc);
|
||||
|
||||
|
|
|
@ -19,13 +19,6 @@
|
|||
|
||||
#include <stddef.h>
|
||||
|
||||
namespace __msan {
|
||||
// This function is a no-op. We need it to make sure that object file
|
||||
// with our replacements will actually be loaded from static MSan
|
||||
// run-time library at link-time.
|
||||
void ReplaceOperatorsNewAndDelete() { }
|
||||
}
|
||||
|
||||
using namespace __msan; // NOLINT
|
||||
|
||||
// Fake std::nothrow_t to avoid including <new>.
|
||||
|
|
Loading…
Reference in New Issue