Mercurial > projects > ldc
comparison ir/irvar.cpp @ 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 | ccd07d9f2ce9 |
children | 79758fd2f48a |
comparison
equal
deleted
inserted
replaced
796:6e7a4c3b64d2 | 797:340acf1535d0 |
---|---|
1 #include "llvm/DerivedTypes.h" | 1 #include "gen/llvm.h" |
2 #include "declaration.h" | 2 #include "declaration.h" |
3 #include "ir/irvar.h" | 3 #include "ir/irvar.h" |
4 | 4 |
5 | 5 |
6 ////////////////////////////////////////////////////////////////////////////// | 6 ////////////////////////////////////////////////////////////////////////////// |
36 ////////////////////////////////////////////////////////////////////////////// | 36 ////////////////////////////////////////////////////////////////////////////// |
37 ////////////////////////////////////////////////////////////////////////////// | 37 ////////////////////////////////////////////////////////////////////////////// |
38 | 38 |
39 IrField::IrField(VarDeclaration* v) : IrVar(v) | 39 IrField::IrField(VarDeclaration* v) : IrVar(v) |
40 { | 40 { |
41 index = -1; | 41 index = 0; |
42 indexOffset = 0; | 42 unionOffset = 0; |
43 constInit = NULL; | 43 constInit = NULL; |
44 } | 44 } |
45 | 45 |
46 ////////////////////////////////////////////////////////////////////////////// | 46 ////////////////////////////////////////////////////////////////////////////// |
47 ////////////////////////////////////////////////////////////////////////////// | 47 ////////////////////////////////////////////////////////////////////////////// |