mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-17 19:07:05 +02:00
Updated to 2.049
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
@@ -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++)
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user