diff options
Diffstat (limited to 'src/rustc/lib/llvm.rs')
| -rw-r--r-- | src/rustc/lib/llvm.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/rustc/lib/llvm.rs b/src/rustc/lib/llvm.rs index 60c08dab716..031ce219308 100644 --- a/src/rustc/lib/llvm.rs +++ b/src/rustc/lib/llvm.rs @@ -128,48 +128,6 @@ enum TypeKind { X86_MMX = 15 } -#[cfg(stage0)] -impl TypeKind : cmp::Eq { - pure fn eq(&&other: TypeKind) -> bool { - match (self, other) { - (Void, Void) => true, - (Half, Half) => true, - (Float, Float) => true, - (Double, Double) => true, - (X86_FP80, X86_FP80) => true, - (FP128, FP128) => true, - (PPC_FP128, PPC_FP128) => true, - (Label, Label) => true, - (Integer, Integer) => true, - (Function, Function) => true, - (Struct, Struct) => true, - (Array, Array) => true, - (Pointer, Pointer) => true, - (Vector, Vector) => true, - (Metadata, Metadata) => true, - (X86_MMX, X86_MMX) => true, - (Void, _) => false, - (Half, _) => false, - (Float, _) => false, - (Double, _) => false, - (X86_FP80, _) => false, - (FP128, _) => false, - (PPC_FP128, _) => false, - (Label, _) => false, - (Integer, _) => false, - (Function, _) => false, - (Struct, _) => false, - (Array, _) => false, - (Pointer, _) => false, - (Vector, _) => false, - (Metadata, _) => false, - (X86_MMX, _) => false, - } - } - pure fn ne(&&other: TypeKind) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl TypeKind : cmp::Eq { pure fn eq(other: &TypeKind) -> bool { match (self, (*other)) { |
