annotate lib/Target/Nios2/TargetInfo/Nios2TargetInfo.cpp @ 129:9ec641e857f8

Fix compile error to update llvm 5.0
author mir3636
date Tue, 12 Dec 2017 19:42:58 +0900
parents 803732b1fca8
children 3a76565eade5
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>
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 X(getTheNios2Target(), "nios2", "Nios2");
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 }