From df43d419de9ef032f5d2ea1b2898475e03ea308d Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 8 Oct 2021 14:13:15 -0700 Subject: [PATCH] [NFC][sanitizer] Remove includes from header --- compiler-rt/lib/dfsan/dfsan.cpp | 8 ++++---- .../sanitizer_common/sanitizer_chained_origin_depot.cpp | 3 +++ .../lib/sanitizer_common/sanitizer_chained_origin_depot.h | 2 -- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/compiler-rt/lib/dfsan/dfsan.cpp b/compiler-rt/lib/dfsan/dfsan.cpp index daffb0b0ec97..825570855ac4 100644 --- a/compiler-rt/lib/dfsan/dfsan.cpp +++ b/compiler-rt/lib/dfsan/dfsan.cpp @@ -693,9 +693,9 @@ extern "C" SANITIZER_INTERFACE_ATTRIBUTE void dfsan_print_origin_trace( PrintInvalidOriginWarning(label, addr); } -extern "C" SANITIZER_INTERFACE_ATTRIBUTE size_t +extern "C" SANITIZER_INTERFACE_ATTRIBUTE uptr dfsan_sprint_origin_trace(const void *addr, const char *description, - char *out_buf, size_t out_buf_size) { + char *out_buf, uptr out_buf_size) { CHECK(out_buf); if (!dfsan_get_track_origins()) { @@ -764,8 +764,8 @@ extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_print_stack_trace() { stack.Print(); } -extern "C" SANITIZER_INTERFACE_ATTRIBUTE size_t -dfsan_sprint_stack_trace(char *out_buf, size_t out_buf_size) { +extern "C" SANITIZER_INTERFACE_ATTRIBUTE uptr +dfsan_sprint_stack_trace(char *out_buf, uptr out_buf_size) { CHECK(out_buf); GET_CALLER_PC_BP; GET_STORE_STACK_TRACE_PC_BP(pc, bp); diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.cpp index 11c2e945afe5..f7d619577818 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.cpp @@ -11,6 +11,9 @@ #include "sanitizer_chained_origin_depot.h" +#include "sanitizer_persistent_allocator.h" +#include "sanitizer_stackdepotbase.h" + namespace __sanitizer { namespace { diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h index edbfb34134c8..2e800964a45d 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h @@ -13,8 +13,6 @@ #define SANITIZER_CHAINED_ORIGIN_DEPOT_H #include "sanitizer_common.h" -#include "sanitizer_persistent_allocator.h" -#include "sanitizer_stackdepotbase.h" namespace __sanitizer {