/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Basic/Targets/TCE.cpp
Line | Count | Source |
1 | | //===--- TCE.cpp - Implement TCE target feature support -------------------===// |
2 | | // |
3 | | // 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 |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | // |
9 | | // This file implements TCE TargetInfo objects. |
10 | | // |
11 | | //===----------------------------------------------------------------------===// |
12 | | |
13 | | #include "TCE.h" |
14 | | #include "Targets.h" |
15 | | #include "clang/Basic/MacroBuilder.h" |
16 | | |
17 | | using namespace clang; |
18 | | using namespace clang::targets; |
19 | | |
20 | | void TCETargetInfo::getTargetDefines(const LangOptions &Opts, |
21 | 5 | MacroBuilder &Builder) const { |
22 | 5 | DefineStd(Builder, "tce", Opts); |
23 | 5 | Builder.defineMacro("__TCE__"); |
24 | 5 | Builder.defineMacro("__TCE_V1__"); |
25 | 5 | } |
26 | | |
27 | | void TCELETargetInfo::getTargetDefines(const LangOptions &Opts, |
28 | 1 | MacroBuilder &Builder) const { |
29 | 1 | DefineStd(Builder, "tcele", Opts); |
30 | 1 | Builder.defineMacro("__TCE__"); |
31 | 1 | Builder.defineMacro("__TCE_V1__"); |
32 | 1 | Builder.defineMacro("__TCELE__"); |
33 | 1 | Builder.defineMacro("__TCELE_V1__"); |
34 | 1 | } |