Mercurial > projects > ldc
diff dmd/expression.h @ 1650:40bd4a0d4870
Update to work with LLVM 2.7.
Removed use of dyn_cast, llvm no compiles
without exceptions and rtti by
default. We do need exceptions for the libconfig stuff, but rtti isn't
necessary (anymore).
Debug info needs to be rewritten, as in LLVM 2.7 the format has
completely changed. To have something to look at while rewriting, the
old code has been wrapped inside #ifndef DISABLE_DEBUG_INFO , this means
that you have to define this to compile at the moment.
Updated tango 0.99.9 patch to include updated EH runtime code, which is
needed for LLVM 2.7 as well.
author | Tomas Lindquist Olsen |
---|---|
date | Wed, 19 May 2010 12:42:32 +0200 |
parents | 44b145be2ef5 |
children |
line wrap: on
line diff
--- a/dmd/expression.h Fri Mar 19 09:31:25 2010 +0100 +++ b/dmd/expression.h Wed May 19 12:42:32 2010 +0200 @@ -41,6 +41,7 @@ struct ClassDeclaration; struct HdrGenState; struct BinExp; +struct AssignExp; struct InterState; struct OverloadSet; @@ -177,6 +178,8 @@ virtual void cacheLvalue(IRState* irs); llvm::Value* cachedLvalue; + + virtual AssignExp* isAssignExp() { return NULL; } #endif }; @@ -942,7 +945,7 @@ struct DotTemplateExp : UnaExp { TemplateDeclaration *td; - + DotTemplateExp(Loc loc, Expression *e, TemplateDeclaration *td); void toCBuffer(OutBuffer *buf, HdrGenState *hgs); }; @@ -1378,6 +1381,8 @@ #if IN_LLVM DValue* toElem(IRState* irs); #endif + + AssignExp* isAssignExp() { return this; } }; #if IN_DMD