mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 04:20:59 +00:00
[sanitizer] Move CommonSanitizerReportMutex from _print.cc to _common.cc
llvm-svn: 314006
This commit is contained in:
parent
cee7536188
commit
4a98c85008
@ -34,6 +34,8 @@ uptr stoptheworld_tracer_pid = 0;
|
||||
// writing to the same log file.
|
||||
uptr stoptheworld_tracer_ppid = 0;
|
||||
|
||||
StaticSpinMutex CommonSanitizerReportMutex;
|
||||
|
||||
void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type,
|
||||
const char *mmap_type, error_t err,
|
||||
bool raw_report) {
|
||||
|
@ -28,8 +28,6 @@
|
||||
|
||||
namespace __sanitizer {
|
||||
|
||||
StaticSpinMutex CommonSanitizerReportMutex;
|
||||
|
||||
static int AppendChar(char **buff, const char *buff_end, char c) {
|
||||
if (*buff < buff_end) {
|
||||
**buff = c;
|
||||
|
Loading…
Reference in New Issue
Block a user