Skip to content

Commit c64d0fe

Browse files
committed
---
yaml --- r: 90104 b: refs/heads/master c: a6fc577 h: refs/heads/master v: v3
1 parent 959ec17 commit c64d0fe

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f09b7b0ecd7fc03c9d433632f89b3267f16cd4f8
2+
refs/heads/master: a6fc577ab580d09f05bb9b545b6a6511cfcb0a8f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/librustc/lib/llvm.rs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,62 @@ pub enum RealPredicate {
128128

129129
// The LLVM TypeKind type - must stay in sync with the def of
130130
// LLVMTypeKind in llvm/include/llvm-c/Core.h
131+
#[cfg(not(stage0))]
132+
#[deriving(Eq)]
133+
#[repr(C)]
134+
pub enum TypeKind {
135+
Void = 0,
136+
Half = 1,
137+
Float = 2,
138+
Double = 3,
139+
X86_FP80 = 4,
140+
FP128 = 5,
141+
PPC_FP128 = 6,
142+
Label = 7,
143+
Integer = 8,
144+
Function = 9,
145+
Struct = 10,
146+
Array = 11,
147+
Pointer = 12,
148+
Vector = 13,
149+
Metadata = 14,
150+
X86_MMX = 15,
151+
}
152+
153+
// NOTE remove these after snapshot. (See also #10308.)
154+
#[cfg(stage0)]
131155
pub type TypeKind = u32;
156+
#[cfg(stage0)]
132157
pub static Void: TypeKind = 0;
158+
#[cfg(stage0)]
133159
pub static Half: TypeKind = 1;
160+
#[cfg(stage0)]
134161
pub static Float: TypeKind = 2;
162+
#[cfg(stage0)]
135163
pub static Double: TypeKind = 3;
164+
#[cfg(stage0)]
136165
pub static X86_FP80: TypeKind = 4;
166+
#[cfg(stage0)]
137167
pub static FP128: TypeKind = 5;
168+
#[cfg(stage0)]
138169
pub static PPC_FP128: TypeKind = 6;
170+
#[cfg(stage0)]
139171
pub static Label: TypeKind = 7;
172+
#[cfg(stage0)]
140173
pub static Integer: TypeKind = 8;
174+
#[cfg(stage0)]
141175
pub static Function: TypeKind = 9;
176+
#[cfg(stage0)]
142177
pub static Struct: TypeKind = 10;
178+
#[cfg(stage0)]
143179
pub static Array: TypeKind = 11;
180+
#[cfg(stage0)]
144181
pub static Pointer: TypeKind = 12;
182+
#[cfg(stage0)]
145183
pub static Vector: TypeKind = 13;
184+
#[cfg(stage0)]
146185
pub static Metadata: TypeKind = 14;
186+
#[cfg(stage0)]
147187
pub static X86_MMX: TypeKind = 15;
148188

149189
#[repr(C)]

0 commit comments

Comments
 (0)