1326938Sdim//===- ARCTargetInfo.cpp - ARC Target Implementation ----------- *- C++ -*-===// 2326938Sdim// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6326938Sdim// 7326938Sdim//===----------------------------------------------------------------------===// 8326938Sdim 9353358Sdim#include "TargetInfo/ARCTargetInfo.h" 10326938Sdim#include "llvm/Support/TargetRegistry.h" 11326938Sdim 12326938Sdimusing namespace llvm; 13326938Sdim 14326938SdimTarget &llvm::getTheARCTarget() { 15326938Sdim static Target TheARCTarget; 16326938Sdim return TheARCTarget; 17326938Sdim} 18326938Sdim 19360784Sdimextern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARCTargetInfo() { 20326938Sdim RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC", "ARC"); 21326938Sdim} 22