10b57cec5SDimitry Andric //===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This file implements PNaCl TargetInfo objects. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric #include "PNaCl.h" 140b57cec5SDimitry Andric #include "clang/Basic/MacroBuilder.h" 150b57cec5SDimitry Andric 160b57cec5SDimitry Andric using namespace clang; 170b57cec5SDimitry Andric using namespace clang::targets; 180b57cec5SDimitry Andric getGCCRegNames() const19*bdd1243dSDimitry AndricArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const { 20*bdd1243dSDimitry Andric return std::nullopt; 21*bdd1243dSDimitry Andric } 220b57cec5SDimitry Andric getGCCRegAliases() const230b57cec5SDimitry AndricArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const { 24*bdd1243dSDimitry Andric return std::nullopt; 250b57cec5SDimitry Andric } 260b57cec5SDimitry Andric getArchDefines(const LangOptions & Opts,MacroBuilder & Builder) const270b57cec5SDimitry Andricvoid PNaClTargetInfo::getArchDefines(const LangOptions &Opts, 280b57cec5SDimitry Andric MacroBuilder &Builder) const { 290b57cec5SDimitry Andric Builder.defineMacro("__le32__"); 300b57cec5SDimitry Andric Builder.defineMacro("__pnacl__"); 310b57cec5SDimitry Andric } 32