c++: Fix crash during NRV optimization with invalid input [PR117099, PR117129]
[official-gcc.git] / libsanitizer / tsan / tsan_symbolize.h
blob7adaa04dc273ede03efd7cd72c10efc88e01ea8f
1 //===-- tsan_symbolize.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 is a part of ThreadSanitizer (TSan), a race detector.
11 //===----------------------------------------------------------------------===//
12 #ifndef TSAN_SYMBOLIZE_H
13 #define TSAN_SYMBOLIZE_H
15 #include "tsan_defs.h"
16 #include "tsan_report.h"
18 namespace __tsan {
20 void EnterSymbolizer();
21 void ExitSymbolizer();
22 SymbolizedStack *SymbolizeCode(uptr addr);
23 ReportLocation *SymbolizeData(uptr addr);
24 void SymbolizeFlush();
26 ReportStack *NewReportStackEntry(uptr addr);
28 } // namespace __tsan
30 #endif // TSAN_SYMBOLIZE_H