mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #1434 from apple/asan
[asan] Add basic support for Address Sanitizer function instrumentation
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "swift/Driver/OutputFileMap.h"
|
||||
#include "swift/Driver/ToolChain.h"
|
||||
#include "swift/Option/Options.h"
|
||||
#include "swift/Option/SanitizerOptions.h"
|
||||
#include "swift/Parse/Lexer.h"
|
||||
#include "swift/Config.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
@@ -1099,6 +1100,10 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
OI.SelectedSanitizer = SanitizerKind::None;
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_EQ))
|
||||
OI.SelectedSanitizer = parseSanitizerArgValues(A, TC.getTriple(), Diags);
|
||||
}
|
||||
|
||||
void Driver::buildActions(const ToolChain &TC,
|
||||
|
||||
Reference in New Issue
Block a user