diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-19 09:14:21 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-19 09:14:21 +0000 |
commit | 609213f9ebc4d074f32b2b4fc6d59ef12b3fb8e6 (patch) | |
tree | 038377ecc1042acd4453d219f0d1053d7b027021 /clang/lib/Driver/ToolChain.cpp | |
parent | 88e024969b10edc8a3c4117ffe347c061cd9709f (diff) | |
download | bcm5719-llvm-609213f9ebc4d074f32b2b4fc6d59ef12b3fb8e6.tar.gz bcm5719-llvm-609213f9ebc4d074f32b2b4fc6d59ef12b3fb8e6.zip |
Move SanitizerArgs to the clang Driver
Summary:
This change turns SanitizerArgs into high-level options
stored in the Driver, which are parsed lazily. This fixes an issue of multiple copies of the same diagnostic message produced by sanitizer arguments parser.
Reviewers: rsmith
Reviewed By: rsmith
CC: chandlerc, eugenis, cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1341
llvm-svn: 188660
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp index 4fe35609767..ca74395955e 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp @@ -42,6 +42,10 @@ bool ToolChain::useIntegratedAs() const { IsIntegratedAssemblerDefault()); } +const SanitizerArgs& ToolChain::getSanitizerArgs() const { + return D.getOrParseSanitizerArgs(Args); +} + std::string ToolChain::getDefaultUniversalArchName() const { // In universal driver terms, the arch name accepted by -arch isn't exactly // the same as the ones that appear in the triple. Roughly speaking, this is |