blob: d808a96db772bf991fdc492d8edf94b2b4da9647 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//===-- 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", "Nios2");
}
|