summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2016-02-17 18:56:20 +0000
committerEd Schouten <ed@nuxi.nl>2016-02-17 18:56:20 +0000
commit51bfbe7f2cb368784ade05a523535becd6316742 (patch)
tree8907bdcab45b2673e843b2fc9f9dcf6c4b62f1fa /clang/lib/Driver/ToolChains.cpp
parent009d60650dd52219d579a4ec35db892cb7692217 (diff)
downloadbcm5719-llvm-51bfbe7f2cb368784ade05a523535becd6316742.tar.gz
bcm5719-llvm-51bfbe7f2cb368784ade05a523535becd6316742.zip
Enable SafeStack for CloudABI.
Summary: I've got a patchset in my home directory to integrate support for SafeStack into CloudABI's C library. All of the CloudABI unit tests still seem to pass. Pretty sweet! This change adds the necessary changes to Clang to make -fsanitize=safe-stack work on CloudABI. Without it, passing this command line flag throws an error. Reviewers: eugenis, samsonov Differential Revision: http://reviews.llvm.org/D17243 llvm-svn: 261135
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 6c5cdb27597..165d5345a36 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -3000,6 +3000,12 @@ Tool *CloudABI::buildLinker() const {
return new tools::cloudabi::Linker(*this);
}
+SanitizerMask CloudABI::getSupportedSanitizers() const {
+ SanitizerMask Res = ToolChain::getSupportedSanitizers();
+ Res |= SanitizerKind::SafeStack;
+ return Res;
+}
+
/// OpenBSD - OpenBSD tool chain which can call as(1) and ld(1) directly.
OpenBSD::OpenBSD(const Driver &D, const llvm::Triple &Triple,
OpenPOWER on IntegriCloud