Tatyana Krasnukha | f8c264e | 2018-11-27 19:52:10 +0000 | [diff] [blame] | 1 | //===--- ARC.cpp - Implement ARC target feature support -------------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Tatyana Krasnukha | f8c264e | 2018-11-27 19:52:10 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file implements ARC TargetInfo objects. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "ARC.h" |
| 14 | #include "clang/Basic/Builtins.h" |
| 15 | #include "clang/Basic/MacroBuilder.h" |
| 16 | #include "clang/Basic/TargetBuiltins.h" |
| 17 | |
| 18 | using namespace clang; |
| 19 | using namespace clang::targets; |
| 20 | |
| 21 | void ARCTargetInfo::getTargetDefines(const LangOptions &Opts, |
| 22 | MacroBuilder &Builder) const { |
| 23 | Builder.defineMacro("__arc__"); |
Chandler Carruth | 4a50956 | 2019-01-19 06:36:08 +0000 | [diff] [blame] | 24 | } |