1 //===- ARCTargetInfo.cpp - ARC Target Implementation ----------- *- C++ -*-===//
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 #include "ARC.h"
11 #include "llvm/Support/TargetRegistry.h"
12 
13 using namespace llvm;
14 
getTheARCTarget()15 Target &llvm::getTheARCTarget() {
16   static Target TheARCTarget;
17   return TheARCTarget;
18 }
19 
LLVMInitializeARCTargetInfo()20 extern "C" void LLVMInitializeARCTargetInfo() {
21   RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC", "ARC");
22 }
23