Mercurial > projects > ldc
comparison gen/structs.cpp @ 802:28ce72c60a21
Fixed some problems with the addZeros forward declarations having type mismatches.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 20:57:52 +0100 |
parents | d14e4594c7d7 |
children | c62c6936635b |
comparison
equal
deleted
inserted
replaced
801:c8d9b30a0dc2 | 802:28ce72c60a21 |
---|---|
16 #include "gen/dvalue.h" | 16 #include "gen/dvalue.h" |
17 | 17 |
18 #include "ir/irstruct.h" | 18 #include "ir/irstruct.h" |
19 | 19 |
20 ////////////////////////////////////////////////////////////////////////////////////////// | 20 ////////////////////////////////////////////////////////////////////////////////////////// |
21 void addZeros(std::vector<llvm::Constant*>& inits, unsigned pos, unsigned offset); // defined in irstruct.cpp | |
22 | 21 |
23 // pair of var and its init | 22 // pair of var and its init |
24 typedef std::pair<VarDeclaration*,Initializer*> VarInitPair; | 23 typedef std::pair<VarDeclaration*,Initializer*> VarInitPair; |
25 | 24 |
26 // comparison func for qsort | 25 // comparison func for qsort |