2017-08-24 23:40:33 +08:00
|
|
|
//===- ARCTargetInfo.cpp - ARC Target Implementation ----------- *- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2017-08-24 23:40:33 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2019-05-15 06:06:04 +08:00
|
|
|
#include "TargetInfo/ARCTargetInfo.h"
|
2017-08-24 23:40:33 +08:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
Target &llvm::getTheARCTarget() {
|
|
|
|
static Target TheARCTarget;
|
|
|
|
return TheARCTarget;
|
|
|
|
}
|
|
|
|
|
2019-06-11 11:21:13 +08:00
|
|
|
extern "C" void LLVMInitializeARCTargetInfo() {
|
2017-11-17 03:10:26 +08:00
|
|
|
RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC", "ARC");
|
2017-08-24 23:40:33 +08:00
|
|
|
}
|