Tatyana Krasnukha | f8c264e | 2018-11-27 19:52:10 +0000 | [diff] [blame] | 1 | //===--- ARC.cpp - Implement ARC target feature support -------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements ARC TargetInfo objects. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "ARC.h" |
| 15 | #include "clang/Basic/Builtins.h" |
| 16 | #include "clang/Basic/MacroBuilder.h" |
| 17 | #include "clang/Basic/TargetBuiltins.h" |
| 18 | |
| 19 | using namespace clang; |
| 20 | using namespace clang::targets; |
| 21 | |
| 22 | void ARCTargetInfo::getTargetDefines(const LangOptions &Opts, |
| 23 | MacroBuilder &Builder) const { |
| 24 | Builder.defineMacro("__arc__"); |
| 25 | }
|