| //===--- Contiki.cpp - Contiki ToolChain Implementations --------*- C++ -*-===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #include "Contiki.h" |
| #include "CommonArgs.h" |
| |
| using namespace clang::driver; |
| using namespace clang::driver::toolchains; |
| using namespace clang; |
| using namespace llvm::opt; |
| |
| Contiki::Contiki(const Driver &D, const llvm::Triple &Triple, |
| const ArgList &Args) |
| : Generic_ELF(D, Triple, Args) {} |
| |
| SanitizerMask Contiki::getSupportedSanitizers() const { |
| const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; |
| SanitizerMask Res = ToolChain::getSupportedSanitizers(); |
| if (IsX86) |
| Res |= SanitizerKind::SafeStack; |
| return Res; |
| } |