diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-07-23 22:05:20 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-07-23 22:05:20 +0000 |
| commit | 5a268b10b3a0244bbb1833652210387921aa368c (patch) | |
| tree | 80964f8953a023b01d9459ceb542aebd3c2cda21 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
| parent | 333a19f6c3fadf23414827834ee81efdd70920cd (diff) | |
| download | bcm5719-llvm-5a268b10b3a0244bbb1833652210387921aa368c.tar.gz bcm5719-llvm-5a268b10b3a0244bbb1833652210387921aa368c.zip | |
[sanitizer] Implement logging to syslog.
Previously, Android target had a logic of duplicating all sanitizer
output to logcat. This change extends it to all posix platforms via
the use of syslog, controlled by log_to_syslog flag. Enabled by
default on Android, off everywhere else.
A bit of cmake magic is required to allow Printf() to call a libc
function. I'm adding a stub implementation to support no-libc builds
like dfsan and safestack.
This is a second attempt. I believe I've fixed all the issues that
prompted the revert: Mac build, and all kinds of non-CMake builds
(there are 3 of those).
llvm-svn: 243051
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions

