Files
swift-mirror/lib/Frontend/CompilerInvocation.cpp
Devin Coughlin dcf7014b2f Driver: Parse sanitizer=... as a SIL argument.
This is preparation for a future patch adding experimental support to
treat Swift-level inout accesses as Thread Sanitizer writes. That patch will
extend the compiler so that additional TSan instrumentation is emitted
during SILGen, rather than solely during IRGen and at the LLVM level as occurs
now.

This patch adds a 'Sanitize' field to SILOptions and moves parsing of
'sanitize=...' to ParseSILArgs() from ParseIRGenArgs() where it is
now.

The sanitizer-coverage flag remains an IRGen-level option; SILGen does not
need to know about the coverage metric.
2017-03-05 15:48:20 -08:00

55 KiB