Mercurial > projects > ldc
diff dmd/expression.c @ 664:eef8ac26c66c
Some missed LLVMDC -> LDC.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 06 Oct 2008 22:54:08 +0200 |
parents | 8aebdf56c455 |
children | a26b0c5d5942 |
line wrap: on
line diff
--- a/dmd/expression.c Mon Oct 06 22:46:55 2008 +0200 +++ b/dmd/expression.c Mon Oct 06 22:54:08 2008 +0200 @@ -267,7 +267,7 @@ //printf("rewriting e1 to %s's this\n", f->toChars()); n++; - // LLVMDC seems dmd misses it sometimes here :/ + // LDC seems dmd misses it sometimes here :/ f->vthis->nestedref = 1; e1 = new VarExp(loc, f->vthis); @@ -3756,7 +3756,7 @@ #endif } - // LLVMDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 + // LDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 // check access to VarDeclaration accessCheck(loc, sc, NULL, var); @@ -5555,7 +5555,7 @@ if (!type) { e1 = e1->semantic(sc); - // LLVMDC we need a copy as we store the LLVM tpye in TypeFunction, and delegate/members have different types for 'this' + // LDC we need a copy as we store the LLVM tpye in TypeFunction, and delegate/members have different types for 'this' type = new TypeDelegate(func->type->syntaxCopy()); type = type->semantic(loc, sc); AggregateDeclaration *ad = func->toParent()->isAggregateDeclaration(); @@ -6223,7 +6223,7 @@ FuncDeclaration *f = dve->var->isFuncDeclaration(); VarDeclaration *v = dve->var->isVarDeclaration(); - // LLVMDC + // LDC if (f && f->isIntrinsic()) { error("cannot take the address of intrinsic function %s", e1->toChars()); @@ -7843,7 +7843,7 @@ e1->checkIntegral(); e2 = e2->checkIntegral(); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC return this; } @@ -7872,7 +7872,7 @@ e1->checkIntegral(); e2 = e2->checkIntegral(); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC return this; } @@ -7901,7 +7901,7 @@ e1->checkIntegral(); e2 = e2->checkIntegral(); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC return this; } @@ -8389,7 +8389,7 @@ e2 = e2->checkIntegral(); e1 = e1->integralPromotions(sc); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC type = e1->type; } return this; @@ -8414,7 +8414,7 @@ e2 = e2->checkIntegral(); e1 = e1->integralPromotions(sc); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC type = e1->type; } return this; @@ -8439,7 +8439,7 @@ e2 = e2->checkIntegral(); e1 = e1->integralPromotions(sc); //e2 = e2->castTo(sc, Type::tshiftcnt); - e2 = e2->castTo(sc, e1->type); // LLVMDC + e2 = e2->castTo(sc, e1->type); // LDC type = e1->type; } return this; @@ -9092,7 +9092,7 @@ #if IN_LLVM -// Strictly LLVMDC specific stuff +// Strictly LDC specific stuff GEPExp::GEPExp(Loc loc, Expression* e, Identifier* id, unsigned idx) : UnaExp(loc, TOKgep, sizeof(GEPExp), e)