aboutsummaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_nolibc.cc
blob: 89c17e0797efe20aaf29a2475e93d71a2e1a935a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===-- sanitizer_common_nolibc.cc ----------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains stubs for libc function to facilitate optional use of
// libc in no-libcdep sources.
//===----------------------------------------------------------------------===//

#include "sanitizer_platform.h"
#include "sanitizer_common.h"
#include "sanitizer_libc.h"

namespace __sanitizer {

#if SANITIZER_LINUX
bool ShouldLogAfterPrintf() { return false; }
#endif
void WriteToSyslog(const char *buffer) {}
void Abort() { internal__exit(1); }

}  // namespace __sanitizer