mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi Reviewed By: craig.topper Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer Differential Revision: https://reviews.llvm.org/D32669 Patch by AndreiGrischenko <andrei.l.grischenko@intel.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304144 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
688 B
C++
25 lines
688 B
C++
//===-- Nios2TargetInfo.cpp - Nios2 Target Implementation -----------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "Nios2.h"
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
|
|
using namespace llvm;
|
|
|
|
Target &llvm::getTheNios2Target() {
|
|
static Target TheNios2Target;
|
|
return TheNios2Target;
|
|
}
|
|
|
|
extern "C" void LLVMInitializeNios2TargetInfo() {
|
|
RegisterTarget<Triple::nios2,
|
|
/*HasJIT=*/true>
|
|
X(getTheNios2Target(), "nios2", "Nios2");
|
|
}
|