comparison ir/ir.cpp @ 1150:2a687353c84d

Added missing new files.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 23:24:47 +0100
parents
children
comparison
equal deleted inserted replaced
1149:5ebe8224988b 1150:2a687353c84d
1 #include "llvm/Target/TargetData.h"
2
3 #include "gen/irstate.h"
4 #include "gen/tollvm.h"
5 #include "gen/functions.h"
6
7 #include "ir/ir.h"
8 #include "ir/irfunction.h"
9
10
11 unsigned GetTypeAlignment(Ir* ir, Type* t)
12 {
13 return gTargetData->getABITypeAlignment(DtoType(t));
14 }
15
16 Ir::Ir()
17 : irs(NULL)
18 {
19 }
20
21 void Ir::addFunctionBody(IrFunction * f)
22 {
23 functionbodies.push_back(f);
24 }
25
26 void Ir::emitFunctionBodies()
27 {
28 while (!functionbodies.empty())
29 {
30 IrFunction* irf = functionbodies.front();
31 functionbodies.pop_front();
32 DtoDefineFunction(irf->decl);
33 }
34 }