Path: blob/main/contrib/llvm-project/clang/lib/Basic/Targets/PNaCl.cpp
35269 views
//===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file implements PNaCl TargetInfo objects.9//10//===----------------------------------------------------------------------===//1112#include "PNaCl.h"13#include "clang/Basic/MacroBuilder.h"1415using namespace clang;16using namespace clang::targets;1718ArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const {19return std::nullopt;20}2122ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {23return std::nullopt;24}2526void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,27MacroBuilder &Builder) const {28Builder.defineMacro("__le32__");29Builder.defineMacro("__pnacl__");30}313233