1 //===-- Nios2TargetInfo.cpp - Nios2 Target Implementation -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include "llvm/Support/TargetRegistry.h"
15 Target &llvm::getTheNios2Target() {
16 static Target TheNios2Target;
17 return TheNios2Target;
20 extern "C" void LLVMInitializeNios2TargetInfo() {
21 RegisterTarget<Triple::nios2,
23 X(getTheNios2Target(), "nios2", "Nios2");