PNaCl.cpp 1019 B

12345678910111213141516171819202122232425262728293031
  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. #include "PNaCl.h"
  13. #include "clang/Basic/MacroBuilder.h"
  14. using namespace clang;
  15. using namespace clang::targets;
  16. ArrayRef<const char *> PNaClTargetInfo::getGCCRegNames() const {
  17. return std::nullopt;
  18. }
  19. ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
  20. return std::nullopt;
  21. }
  22. void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
  23. MacroBuilder &Builder) const {
  24. Builder.defineMacro("__le32__");
  25. Builder.defineMacro("__pnacl__");
  26. }