[compiler-rt] e855440 - [NFC][memprof] Remove unused code
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 18:51:10 PDT 2022
Author: Vitaly Buka
Date: 2022-07-20T18:50:45-07:00
New Revision: e8554402b30b3e3758182a1a34ac952b70702f0e
URL: https://github.com/llvm/llvm-project/commit/e8554402b30b3e3758182a1a34ac952b70702f0e
DIFF: https://github.com/llvm/llvm-project/commit/e8554402b30b3e3758182a1a34ac952b70702f0e.diff
LOG: [NFC][memprof] Remove unused code
Added:
Modified:
compiler-rt/lib/memprof/memprof_internal.h
compiler-rt/lib/memprof/memprof_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/memprof/memprof_internal.h b/compiler-rt/lib/memprof/memprof_internal.h
index 1adb368e3e41d..bba465e60d826 100644
--- a/compiler-rt/lib/memprof/memprof_internal.h
+++ b/compiler-rt/lib/memprof/memprof_internal.h
@@ -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();
diff --git a/compiler-rt/lib/memprof/memprof_linux.cpp b/compiler-rt/lib/memprof/memprof_linux.cpp
index 61c833bfdf649..fcd927023f5c3 100644
--- a/compiler-rt/lib/memprof/memprof_linux.cpp
+++ b/compiler-rt/lib/memprof/memprof_linux.cpp
@@ -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
More information about the llvm-commits
mailing list