Mercurial > projects > ldc
changeset 922:0749c0757a43
Apply naked changes of [920] to dmd2/
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Feb 2009 18:11:39 +0100 |
parents | 75c53f8f67a4 |
children | 9bab304ed531 7985bb036db4 |
files | dmd2/declaration.c dmd2/declaration.h dmd2/mars.c dmd2/statement.h |
diffstat | 4 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd2/declaration.c Tue Feb 03 18:00:17 2009 +0100 +++ b/dmd2/declaration.c Tue Feb 03 18:11:39 2009 +0100 @@ -619,6 +619,7 @@ // LDC anonDecl = NULL; offset2 = 0; + nakedUse = false; } Dsymbol *VarDeclaration::syntaxCopy(Dsymbol *s)
--- a/dmd2/declaration.h Tue Feb 03 18:00:17 2009 +0100 +++ b/dmd2/declaration.h Tue Feb 03 18:11:39 2009 +0100 @@ -280,6 +280,7 @@ // LDC AnonDeclaration* anonDecl; unsigned offset2; + bool nakedUse; }; /**************************************************************/
--- a/dmd2/mars.c Tue Feb 03 18:00:17 2009 +0100 +++ b/dmd2/mars.c Tue Feb 03 18:11:39 2009 +0100 @@ -912,7 +912,7 @@ global.params.cpu = ARCHthumb; } else { - assert(0 && "Invalid arch"); + error("invalid cpu architecture specified: %s", global.params.llvmArch); } assert(global.params.cpu != ARCHinvalid);
--- a/dmd2/statement.h Tue Feb 03 18:00:17 2009 +0100 +++ b/dmd2/statement.h Tue Feb 03 18:11:39 2009 +0100 @@ -162,6 +162,9 @@ // Back end virtual void toIR(IRState *irs); + // LDC + virtual void toNakedIR(IRState *irs); + // Avoid dynamic_cast virtual DeclarationStatement *isDeclarationStatement() { return NULL; } virtual CompoundStatement *isCompoundStatement() { return NULL; } @@ -187,6 +190,9 @@ Statement *inlineScan(InlineScanState *iss); void toIR(IRState *irs); + + // LDC + virtual void toNakedIR(IRState *irs); }; struct CompileStatement : Statement @@ -237,6 +243,9 @@ virtual void toIR(IRState *irs); + // LDC + virtual void toNakedIR(IRState *irs); + virtual CompoundStatement *isCompoundStatement() { return this; } }; @@ -879,6 +888,7 @@ // LDC bool asmLabel; // for labels inside inline assembler + virtual void toNakedIR(IRState *irs); }; struct LabelDsymbol : Dsymbol @@ -912,6 +922,8 @@ // LDC // non-zero if this is a branch, contains the target labels identifier Identifier* isBranchToLabel; + + virtual void toNakedIR(IRState *irs); }; struct AsmBlockStatement : CompoundStatement @@ -928,6 +940,7 @@ AsmBlockStatement *isAsmBlockStatement() { return this; } void toIR(IRState *irs); + virtual void toNakedIR(IRState *irs); }; #endif /* DMD_STATEMENT_H */