1//===--- PNaCl.cpp - Implement PNaCl 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 PNaCl TargetInfo objects.
10//
11//===----------------------------------------------------------------------===//
12
13#include "PNaCl.h"
14#include "clang/Basic/MacroBuilder.h"
15
16using namespace clang;
17using namespace clang::targets;
18
19ArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const {
20 return std::nullopt;
21}
22
23ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
24 return std::nullopt;
25}
26
27void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
28 MacroBuilder &Builder) const {
29 Builder.defineMacro(Name: "__le32__");
30 Builder.defineMacro(Name: "__pnacl__");
31}
32

source code of clang/lib/Basic/Targets/PNaCl.cpp