clang 20.0.0git
PNaCl.cpp
Go to the documentation of this file.
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"
15
16using namespace clang;
17using namespace clang::targets;
18
20
22 return {};
23}
24
26 MacroBuilder &Builder) const {
27 Builder.defineMacro("__le32__");
28 Builder.defineMacro("__pnacl__");
29}
Defines the clang::MacroBuilder utility class.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:499
void getArchDefines(const LangOptions &Opts, MacroBuilder &Builder) const
Definition: PNaCl.cpp:25
ArrayRef< const char * > getGCCRegNames() const override
Definition: PNaCl.cpp:19
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Definition: PNaCl.cpp:21
The JSON file list parser is used to communicate input to InstallAPI.