Mercurial > projects > ldc
diff dmd/statement.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/statement.h Fri Mar 19 09:31:25 2010 +0100 +++ b/dmd/statement.h Wed May 19 12:42:32 2010 +0200 @@ -141,6 +141,7 @@ virtual ReturnStatement *isReturnStatement() { return NULL; } virtual IfStatement *isIfStatement() { return NULL; } virtual CaseStatement* isCaseStatement() { return NULL; } + virtual LabelStatement* isLabelStatement() { return NULL; } #if IN_LLVM virtual void toNakedIR(IRState *irs); @@ -492,7 +493,7 @@ Array gotoCases; // array of unresolved GotoCaseStatement's Array *cases; // array of CaseStatement's int hasNoDefault; // !=0 if no default statement - + // LDC Statement *enclosingScopeExit; @@ -536,7 +537,7 @@ void toIR(IRState *irs); CaseStatement* isCaseStatement() { return this; } - + // LDC llvm::BasicBlock* bodyBB; llvm::ConstantInt* llvmIdx; @@ -863,6 +864,8 @@ // LDC bool asmLabel; // for labels inside inline assembler void toNakedIR(IRState *irs); + + LabelStatement* isLabelStatement() { return this; } }; struct LabelDsymbol : Dsymbol