xref: /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/Le64.cpp (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1 //===--- Le64.cpp - Implement Le64 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 Le64 TargetInfo objects.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "Le64.h"
14 #include "Targets.h"
15 #include "clang/Basic/Builtins.h"
16 #include "clang/Basic/MacroBuilder.h"
17 #include "clang/Basic/TargetBuiltins.h"
18 
19 using namespace clang;
20 using namespace clang::targets;
21 
getTargetBuiltins() const22 ArrayRef<Builtin::Info> Le64TargetInfo::getTargetBuiltins() const {
23   return {};
24 }
25 
getTargetDefines(const LangOptions & Opts,MacroBuilder & Builder) const26 void Le64TargetInfo::getTargetDefines(const LangOptions &Opts,
27                                       MacroBuilder &Builder) const {
28   DefineStd(Builder, "unix", Opts);
29   defineCPUMacros(Builder, "le64", /*Tuning=*/false);
30 }
31