[compiler-rt] Sanitizer/MIPS: fix build fail on pre-R6 (PR #76894)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 7 10:03:36 PST 2024
================
@@ -191,12 +191,12 @@ const interpose_substitution substitution_##func_name[] \
# define ASM_TYPE_FUNCTION_STR "@function"
# endif
// Keep trampoline implementation in sync with sanitizer_common/sanitizer_asm.h
-# define DECLARE_WRAPPER(ret_type, func, ...) \
- extern "C" ret_type func(__VA_ARGS__); \
- extern "C" ret_type TRAMPOLINE(func)(__VA_ARGS__); \
- extern "C" ret_type __interceptor_##func(__VA_ARGS__) \
- INTERCEPTOR_ATTRIBUTE __attribute__((weak)) ALIAS(WRAP(func)); \
- asm( \
+# define DECLARE_WRAPPER(ret_type, func, ...) \
----------------
MaskRay wrote:
You can ignore clang-format error to reduce diff.
Does this patch address all comments I left on https://reviews.llvm.org/D158491 ?
https://github.com/llvm/llvm-project/pull/76894
More information about the llvm-commits
mailing list