Le64.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. //===--- Le64.cpp - Implement Le64 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 Le64 TargetInfo objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "Le64.h"
  13. #include "Targets.h"
  14. #include "clang/Basic/Builtins.h"
  15. #include "clang/Basic/MacroBuilder.h"
  16. #include "clang/Basic/TargetBuiltins.h"
  17. using namespace clang;
  18. using namespace clang::targets;
  19. ArrayRef<Builtin::Info> Le64TargetInfo::getTargetBuiltins() const {
  20. return {};
  21. }
  22. void Le64TargetInfo::getTargetDefines(const LangOptions &Opts,
  23. MacroBuilder &Builder) const {
  24. DefineStd(Builder, "unix", Opts);
  25. defineCPUMacros(Builder, "le64", /*Tuning=*/false);
  26. Builder.defineMacro("__ELF__");
  27. }