forked from OSchip/llvm-project
[NFC][memprof] Remove unused code
This commit is contained in:
parent
26a7ee3d54
commit
e8554402b3
|
@ -66,8 +66,6 @@ void *MemprofDoesNotSupportStaticLinkage();
|
|||
// memprof_thread.cpp
|
||||
MemprofThread *CreateMainThread();
|
||||
|
||||
void ReadContextStack(void *context, uptr *stack, uptr *ssize);
|
||||
|
||||
// Wrapper for TLS/TSD.
|
||||
void TSDInit(void (*destructor)(void *tsd));
|
||||
void *TSDGet();
|
||||
|
|
|
@ -69,12 +69,6 @@ uptr FindDynamicShadowStart() {
|
|||
/*min_shadow_base_alignment*/ 0, kHighMemEnd);
|
||||
}
|
||||
|
||||
void ReadContextStack(void *context, uptr *stack, uptr *ssize) {
|
||||
ucontext_t *ucp = (ucontext_t *)context;
|
||||
*stack = (uptr)ucp->uc_stack.ss_sp;
|
||||
*ssize = ucp->uc_stack.ss_size;
|
||||
}
|
||||
|
||||
void *MemprofDlSymNext(const char *sym) { return dlsym(RTLD_NEXT, sym); }
|
||||
|
||||
} // namespace __memprof
|
||||
|
|
Loading…
Reference in New Issue