blob: 60e9467193a812f372824dd0f202ea45fb17d8d3 [file] [log] [blame]
Erich Keaneebba5922017-07-21 22:37:03 +00001//===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Erich Keaneebba5922017-07-21 22:37:03 +00006//
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 { return None; }
20
21ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
22 return None;
23}
24
25void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
26 MacroBuilder &Builder) const {
27 Builder.defineMacro("__le32__");
28 Builder.defineMacro("__pnacl__");
29}