| 1 | //===-- copyprof_internal.h -----------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// |
| 9 | /// This file declares internal runtime data structures, flags, and helper |
| 10 | /// functions shared within the CopyProf runtime library. |
| 11 | /// |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef COPYPROF_INTERNAL_H |
| 15 | #define COPYPROF_INTERNAL_H |
| 16 | |
| 17 | #include "sanitizer_common/sanitizer_internal_defs.h" |
| 18 | #include "sanitizer_common/sanitizer_stacktrace.h" |
| 19 | |
| 20 | using __sanitizer::u32; |
| 21 | using __sanitizer::u64; |
| 22 | using __sanitizer::uptr; |
| 23 | using __sanitizer::usize; |
| 24 | |
| 25 | namespace __copyprof { |
| 26 | |
| 27 | using __sanitizer::BufferedStackTrace; |
| 28 | extern bool copyprof_is_initialized; |
| 29 | extern bool copyprof_init_is_running; |
| 30 | |
| 31 | } // namespace __copyprof |
| 32 | |
| 33 | #endif // COPYPROF_INTERNAL_H |
| 34 | |