1e5dd7070Spatrick //===--- PNaCl.cpp - Implement PNaCl target feature support ---------------===// 2e5dd7070Spatrick // 3e5dd7070Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4e5dd7070Spatrick // See https://llvm.org/LICENSE.txt for license information. 5e5dd7070Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6e5dd7070Spatrick // 7e5dd7070Spatrick //===----------------------------------------------------------------------===// 8e5dd7070Spatrick // 9e5dd7070Spatrick // This file implements PNaCl TargetInfo objects. 10e5dd7070Spatrick // 11e5dd7070Spatrick //===----------------------------------------------------------------------===// 12e5dd7070Spatrick 13e5dd7070Spatrick #include "PNaCl.h" 14e5dd7070Spatrick #include "clang/Basic/MacroBuilder.h" 15e5dd7070Spatrick 16e5dd7070Spatrick using namespace clang; 17e5dd7070Spatrick using namespace clang::targets; 18e5dd7070Spatrick getGCCRegNames() const19*12c85518SrobertArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const { 20*12c85518Srobert return std::nullopt; 21*12c85518Srobert } 22e5dd7070Spatrick getGCCRegAliases() const23e5dd7070SpatrickArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const { 24*12c85518Srobert return std::nullopt; 25e5dd7070Spatrick } 26e5dd7070Spatrick getArchDefines(const LangOptions & Opts,MacroBuilder & Builder) const27e5dd7070Spatrickvoid PNaClTargetInfo::getArchDefines(const LangOptions &Opts, 28e5dd7070Spatrick MacroBuilder &Builder) const { 29e5dd7070Spatrick Builder.defineMacro("__le32__"); 30e5dd7070Spatrick Builder.defineMacro("__pnacl__"); 31e5dd7070Spatrick } 32