Updated to 2.049

This commit is contained in:
Alexey Prokhin
2010-09-30 21:54:45 +04:00
parent 93ddf8112b
commit df87607ba2
113 changed files with 81689 additions and 74271 deletions
-6
View File
@@ -13,12 +13,6 @@ namespace llvm
class Value;
}
// TODO: hack for old d2 frontends
#if DMDV2
typedef Argument Parameter;
typedef Arguments Parameters;
#endif
const llvm::FunctionType* DtoFunctionType(Type* t, Type* thistype, Type* nesttype, bool ismain = false);
const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);
+2 -2
View File
@@ -1520,7 +1520,7 @@ Type * stripModifiers( Type * type )
case MODshared:
t = type->sto;
break;
case MODinvariant:
case MODimmutable:
t = type->ito;
break;
case MODshared | MODconst:
@@ -1554,7 +1554,7 @@ Type * stripModifiers( Type * type )
t->cto = type;
break;
case MODinvariant:
case MODimmutable:
t->ito = type;
break;
-3
View File
@@ -825,8 +825,6 @@ LDC_TARGETS
fatal();
#endif
// TODO: hack for old d2 frontends
#if DMDV1
// load all unconditional imports for better symbol resolving
for (int i = 0; i < modules.dim; i++)
{
@@ -837,7 +835,6 @@ LDC_TARGETS
}
if (global.errors)
fatal();
#endif
// Do semantic analysis
for (int i = 0; i < modules.dim; i++)
-6
View File
@@ -13,12 +13,6 @@
#include "gen/logger.h"
// TODO: hack for old d2 frontends
#if DMDV2
typedef Argument Parameter;
typedef Arguments Parameters;
#endif
//////////////////////////////////////////////////////////////////////////////////////////
TypeFunction* DtoTypeFunction(DValue* fnval)
+1 -7
View File
@@ -46,12 +46,6 @@
#include "ir/irvar.h"
#include "ir/irtype.h"
// TODO: hack for old d2 frontends
#if DMDV2
typedef Argument Parameter;
typedef Arguments Parameters;
#endif
/*******************************************
* Get a canonicalized form of the TypeInfo for use with the internal
* runtime library routines. Canonicalized in that static arrays are
@@ -128,7 +122,7 @@ Expression *Type::getTypeInfo(Scope *sc)
#if DMDV2
if (t->isConst())
t->vtinfo = new TypeInfoConstDeclaration(t);
else if (t->isInvariant())
else if (t->isImmutable())
t->vtinfo = new TypeInfoInvariantDeclaration(t);
else
#endif