[compiler-rt] [compiler-rt][Mips] Fix mips SP register definition (PR #124493)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 13:13:55 PST 2025


================
@@ -37,25 +37,28 @@
 # include <asm/ptrace.h>
 #endif
 #include <sys/user.h>  // for user_regs_struct
-#if SANITIZER_ANDROID && SANITIZER_MIPS
-# include <asm/reg.h>  // for mips SP register in sys/user.h
-#endif
-#include <sys/wait.h> // for signal-related stuff
-
-#ifdef sa_handler
-# undef sa_handler
-#endif
-
-#ifdef sa_sigaction
-# undef sa_sigaction
-#endif
-
-#include "sanitizer_common.h"
-#include "sanitizer_flags.h"
-#include "sanitizer_libc.h"
-#include "sanitizer_linux.h"
-#include "sanitizer_mutex.h"
-#include "sanitizer_placement_new.h"
+#  if SANITIZER_MIPS
+// clang-format off
----------------
vitalybuka wrote:

Why do we need `clang-format off`

https://github.com/llvm/llvm-project/pull/124493


More information about the llvm-commits mailing list