1 //===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file implements PNaCl TargetInfo objects.
11 //===----------------------------------------------------------------------===//
14 #include "clang/Basic/MacroBuilder.h"
16 using namespace clang
;
17 using namespace clang::targets
;
19 ArrayRef
<const char *> PNaClTargetInfo::getGCCRegNames() const {
23 ArrayRef
<TargetInfo::GCCRegAlias
> PNaClTargetInfo::getGCCRegAliases() const {
27 void PNaClTargetInfo::getArchDefines(const LangOptions
&Opts
,
28 MacroBuilder
&Builder
) const {
29 Builder
.defineMacro("__le32__");
30 Builder
.defineMacro("__pnacl__");