blob: 5dda1b1b09fbb6b68a6a1fe1f7026d7c76c44b6e [file] [log] [blame]
David L. Jonesf561aba2017-03-08 01:02:16 +00001//===--- Contiki.cpp - Contiki ToolChain Implementations --------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
David L. Jonesf561aba2017-03-08 01:02:16 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "Contiki.h"
10#include "CommonArgs.h"
11
12using namespace clang::driver;
13using namespace clang::driver::toolchains;
14using namespace clang;
15using namespace llvm::opt;
16
17Contiki::Contiki(const Driver &D, const llvm::Triple &Triple,
18 const ArgList &Args)
19 : Generic_ELF(D, Triple, Args) {}
20
21SanitizerMask Contiki::getSupportedSanitizers() const {
22 const bool IsX86 = getTriple().getArch() == llvm::Triple::x86;
23 SanitizerMask Res = ToolChain::getSupportedSanitizers();
24 if (IsX86)
25 Res |= SanitizerKind::SafeStack;
26 return Res;
27}