Mercurial > projects > ldc
comparison gen/irstate.h @ 797:340acf1535d0
Removed KDevelop3 project files, CMake can generate them just fine!
Fixed function literals in static initializers.
Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE.
Changed errors to go to stderr instead of stdout.
Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 21:25:43 +0100 |
parents | eef8ac26c66c |
children | 545f54041d91 |
comparison
equal
deleted
inserted
replaced
796:6e7a4c3b64d2 | 797:340acf1535d0 |
---|---|
21 struct ClassDeclaration; | 21 struct ClassDeclaration; |
22 struct FuncDeclaration; | 22 struct FuncDeclaration; |
23 struct Module; | 23 struct Module; |
24 struct TypeStruct; | 24 struct TypeStruct; |
25 struct BaseClass; | 25 struct BaseClass; |
26 struct AnonDeclaration; | |
26 struct EnclosingHandler; | 27 struct EnclosingHandler; |
27 | 28 |
28 struct IrModule; | 29 struct IrModule; |
29 | 30 |
30 // represents a scope | 31 // represents a scope |
144 | 145 |
145 // structs | 146 // structs |
146 typedef std::vector<IrStruct*> StructVector; | 147 typedef std::vector<IrStruct*> StructVector; |
147 StructVector structs; | 148 StructVector structs; |
148 IrStruct* topstruct(); | 149 IrStruct* topstruct(); |
149 | |
150 // classes TODO move into IRClass | |
151 typedef std::vector<ClassDeclaration*> ClassDeclVec; | |
152 ClassDeclVec classes; | |
153 | 150 |
154 // D main function | 151 // D main function |
155 bool emitMain; | 152 bool emitMain; |
156 llvm::Function* mainFunc; | 153 llvm::Function* mainFunc; |
157 | 154 |