PNaCl.cpp 1001 B

1234567891011121314151617181920212223242526272829
  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 { return None; }
  17. ArrayRef<TargetInfo::GCCRegAlias> PNaClTargetInfo::getGCCRegAliases() const {
  18. return None;
  19. }
  20. void PNaClTargetInfo::getArchDefines(const LangOptions &Opts,
  21. MacroBuilder &Builder) const {
  22. Builder.defineMacro("__le32__");
  23. Builder.defineMacro("__pnacl__");
  24. }