clang  6.0.0svn
Contiki.cpp
Go to the documentation of this file.
1 //===--- Contiki.cpp - Contiki ToolChain Implementations --------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "Contiki.h"
11 #include "CommonArgs.h"
12 
13 using namespace clang::driver;
14 using namespace clang::driver::toolchains;
15 using namespace clang;
16 using namespace llvm::opt;
17 
18 Contiki::Contiki(const Driver &D, const llvm::Triple &Triple,
19  const ArgList &Args)
20  : Generic_ELF(D, Triple, Args) {}
21 
23  const bool IsX86 = getTriple().getArch() == llvm::Triple::x86;
25  if (IsX86)
26  Res |= SanitizerKind::SafeStack;
27  return Res;
28 }
Contiki(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args)
Definition: Contiki.cpp:18
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:65
SanitizerMask getSupportedSanitizers() const override
Return sanitizers which are available in this toolchain.
Definition: Contiki.cpp:22
Dataflow Directional Tag Classes.
uint64_t SanitizerMask
Definition: Sanitizers.h:24
const llvm::Triple & getTriple() const
Definition: ToolChain.h:169
virtual SanitizerMask getSupportedSanitizers() const
Return sanitizers which are available in this toolchain.
Definition: ToolChain.cpp:776