diff ir/irclass.cpp @ 1457:ed70675862c8

Remove some unnecessary `#if`s. The D1 frontend has a Type::nextOf() which just returns `next`.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 02 Jun 2009 18:41:10 +0200
parents f35a9a77d256
children a5526b7a5ae6
line wrap: on
line diff
--- a/ir/irclass.cpp	Tue Jun 02 17:12:37 2009 +0100
+++ b/ir/irclass.cpp	Tue Jun 02 18:41:10 2009 +0200
@@ -111,11 +111,7 @@
                     "don't implement any interfaces");
 
     VarDeclarationIter idx(ClassDeclaration::classinfo->fields, 3);
-#if DMDV2
     const llvm::Type* InterfaceTy = DtoType(idx->type->nextOf());
-#else
-    const llvm::Type* InterfaceTy = DtoType(idx->type->next);
-#endif
 
     // create Interface[N]
     const llvm::ArrayType* array_type = llvm::ArrayType::get(InterfaceTy,n);
@@ -330,11 +326,7 @@
 
     // start with the interface info
     VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3);
-#if DMDV2
     Type* first = interfaces_idx->type->nextOf()->pointerTo();
-#else
-    Type* first = interfaces_idx->type->next->pointerTo();
-#endif
 
     // index into the interfaces array
     llvm::Constant* idxs[2] = {