Mercurial > projects > ldc
comparison dmd/declaration.c @ 100:5071469303d4 trunk
[svn r104] TONS OF FIXES.
Split up declaration, constant initializer gen and definition for globals, structs, classes and functions.
Improved ClassInfo support (not complete), not in vtable yet.
Fixed a bunch of forward reference problems.
Much more. Major commit! :)
author | lindquist |
---|---|
date | Fri, 16 Nov 2007 08:21:47 +0100 |
parents | 70d6113eeb8c |
children | a7dfa0ed966c |
comparison
equal
deleted
inserted
replaced
99:a676a7743642 | 100:5071469303d4 |
---|---|
30 { | 30 { |
31 type = NULL; | 31 type = NULL; |
32 storage_class = STCundefined; | 32 storage_class = STCundefined; |
33 protection = PROTundefined; | 33 protection = PROTundefined; |
34 linkage = LINKdefault; | 34 linkage = LINKdefault; |
35 llvmTouched = false; | |
36 } | 35 } |
37 | 36 |
38 void Declaration::semantic(Scope *sc) | 37 void Declaration::semantic(Scope *sc) |
39 { | 38 { |
40 } | 39 } |
551 value = NULL; | 550 value = NULL; |
552 llvmNestedIndex = -1; | 551 llvmNestedIndex = -1; |
553 llvmFieldIndex = -1; | 552 llvmFieldIndex = -1; |
554 llvmFieldIndexOffset = 0; | 553 llvmFieldIndexOffset = 0; |
555 llvmNeedsStorage = false; | 554 llvmNeedsStorage = false; |
555 llvmConstInit = NULL; | |
556 llvmIRGlobal = NULL; | |
556 } | 557 } |
557 | 558 |
558 Dsymbol *VarDeclaration::syntaxCopy(Dsymbol *s) | 559 Dsymbol *VarDeclaration::syntaxCopy(Dsymbol *s) |
559 { | 560 { |
560 //printf("VarDeclaration::syntaxCopy(%s)\n", toChars()); | 561 //printf("VarDeclaration::syntaxCopy(%s)\n", toChars()); |