diff options
author | Kostya Serebryany <kcc@google.com> | 2017-01-26 01:04:54 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-01-26 01:04:54 +0000 |
commit | d0ecb4c69e7e74048b527daa72baac1318d5f306 (patch) | |
tree | 04449efe178ccc240285fd65f7d9d85b88f052fb /llvm/lib/Fuzzer/FuzzerIOPosix.cpp | |
parent | 5dd55e8405d66842219883a55563ec45cc010da4 (diff) | |
download | bcm5719-llvm-d0ecb4c69e7e74048b527daa72baac1318d5f306.tar.gz bcm5719-llvm-d0ecb4c69e7e74048b527daa72baac1318d5f306.zip |
[libFuzzer] simplify the code for __sanitizer_cov_trace_pc_guard and make sure it is not asan/msan-instrumented
llvm-svn: 293125
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerIOPosix.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerIOPosix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIOPosix.cpp b/llvm/lib/Fuzzer/FuzzerIOPosix.cpp index 2dc2c61b999..40209a034e3 100644 --- a/llvm/lib/Fuzzer/FuzzerIOPosix.cpp +++ b/llvm/lib/Fuzzer/FuzzerIOPosix.cpp @@ -109,6 +109,11 @@ bool IsInterestingCoverageFile(const std::string &FileName) { return true; } + +void RawPrint(const char *Str) { + write(2, Str, strlen(Str)); +} + } // namespace fuzzer #endif // LIBFUZZER_POSIX |