[compiler-rt] [sanitizer_common] Drop remaining support for Android 5 or older (PR #146187)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 14:51:27 PDT 2025
================
@@ -963,19 +957,8 @@ inline void AndroidLogInit() {}
inline void SetAbortMessage(const char *) {}
#endif
-#if SANITIZER_ANDROID
-void SanitizerInitializeUnwinder();
-AndroidApiLevel AndroidGetApiLevel();
-#else
-inline void AndroidLogWrite(const char *buffer_unused) {}
-inline void SanitizerInitializeUnwinder() {}
-inline AndroidApiLevel AndroidGetApiLevel() { return ANDROID_NOT_ANDROID; }
-#endif
-
inline uptr GetPthreadDestructorIterations() {
-#if SANITIZER_ANDROID
- return (AndroidGetApiLevel() == ANDROID_LOLLIPOP_MR1) ? 8 : 4;
-#elif SANITIZER_POSIX
+#if SANITIZER_ANDROID || SANITIZER_POSIX
----------------
enh-google wrote:
does `SANITIZER_POSIX` not cover android?
https://github.com/llvm/llvm-project/pull/146187
More information about the llvm-commits
mailing list