blob: d808a96db772bf991fdc492d8edf94b2b4da9647 [file] [log] [blame]
Nikolai Bozhenov82f08012017-05-29 09:48:30 +00001//===-- Nios2TargetInfo.cpp - Nios2 Target Implementation -----------------===//
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 "Nios2.h"
11#include "llvm/Support/TargetRegistry.h"
12
13using namespace llvm;
14
15Target &llvm::getTheNios2Target() {
16 static Target TheNios2Target;
17 return TheNios2Target;
18}
19
20extern "C" void LLVMInitializeNios2TargetInfo() {
21 RegisterTarget<Triple::nios2,
22 /*HasJIT=*/true>
Nikolai Bozhenov1cf9c542017-12-07 12:35:02 +000023 X(getTheNios2Target(), "nios2", "Nios2", "Nios2");
Nikolai Bozhenov82f08012017-05-29 09:48:30 +000024}