ARC.cpp 857 B

123456789101112131415161718192021222324
  1. //===--- ARC.cpp - Implement ARC 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 ARC TargetInfo objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "ARC.h"
  13. #include "clang/Basic/Builtins.h"
  14. #include "clang/Basic/MacroBuilder.h"
  15. #include "clang/Basic/TargetBuiltins.h"
  16. using namespace clang;
  17. using namespace clang::targets;
  18. void ARCTargetInfo::getTargetDefines(const LangOptions &Opts,
  19. MacroBuilder &Builder) const {
  20. Builder.defineMacro("__arc__");
  21. }