annotate lib/Target/Nios2/TargetInfo/Nios2TargetInfo.cpp @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 //===-- Nios2TargetInfo.cpp - Nios2 Target Implementation -----------------===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 // The LLVM Compiler Infrastructure
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 // This file is distributed under the University of Illinois Open Source
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 // License. See LICENSE.TXT for details.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 #include "Nios2.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 #include "llvm/Support/TargetRegistry.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 using namespace llvm;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 Target &llvm::getTheNios2Target() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 static Target TheNios2Target;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 return TheNios2Target;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 extern "C" void LLVMInitializeNios2TargetInfo() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 RegisterTarget<Triple::nios2,
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 /*HasJIT=*/true>
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
23 X(getTheNios2Target(), "nios2", "Nios2", "Nios2");
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 }