mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 13:48:45 +00:00
![Pete Couperus](/assets/img/avatar_default.png)
Add the ARC backend as an experimental target to lib/Target. Reviewed at: https://reviews.llvm.org/D36331 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311667 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
630 B
C++
23 lines
630 B
C++
//===- ARCTargetInfo.cpp - ARC Target Implementation ----------- *- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "ARC.h"
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
|
|
using namespace llvm;
|
|
|
|
Target &llvm::getTheARCTarget() {
|
|
static Target TheARCTarget;
|
|
return TheARCTarget;
|
|
}
|
|
|
|
extern "C" void LLVMInitializeARCTargetInfo() {
|
|
RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC");
|
|
}
|