Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/Nios2/TargetInfo/Nios2TargetInfo.cpp @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | |
children | 3a76565eade5 |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
1 //===-- 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 | |
13 using namespace llvm; | |
14 | |
15 Target &llvm::getTheNios2Target() { | |
16 static Target TheNios2Target; | |
17 return TheNios2Target; | |
18 } | |
19 | |
20 extern "C" void LLVMInitializeNios2TargetInfo() { | |
21 RegisterTarget<Triple::nios2, | |
22 /*HasJIT=*/true> | |
23 X(getTheNios2Target(), "nios2", "Nios2"); | |
24 } |