[clang] [compiler-rt] [compiler-rt] Realtime Sanitizer: Introduce Realtime Sanitizer (RTSan) backend (PR #92460)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 15:10:27 PDT 2024


================
@@ -0,0 +1,412 @@
+//===--- rtsan_interceptors.cpp - Realtime Sanitizer ------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+//===----------------------------------------------------------------------===//
+
+#include "rtsan/rtsan_interceptors.h"
+
+#include "sanitizer_common/sanitizer_platform.h"
+#include "sanitizer_common/sanitizer_platform_interceptors.h"
+
+#include "interception/interception.h"
+#include "rtsan/rtsan_context.h"
+
+#if !SANITIZER_LINUX && !SANITIZER_APPLE
----------------
MaskRay wrote:

If other OSes are not supported, the NetBSD/FreeBSD/etc references in `lit.cfg.py` should be removed.

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


More information about the cfe-commits mailing list