Mercurial > projects > ldc
diff gen/irstate.h @ 155:7f92f477ff53 trunk
[svn r171] starting to move IR data from AST nodes into IRState; started with IrFunction
author | ChristianK |
---|---|
date | Tue, 29 Apr 2008 21:33:50 +0200 |
parents | 86d3bb8ca33e |
children | ccd07d9f2ce9 |
line wrap: on
line diff
--- a/gen/irstate.h Tue Mar 25 18:25:24 2008 +0100 +++ b/gen/irstate.h Tue Apr 29 21:33:50 2008 +0200 @@ -3,6 +3,7 @@ #include <vector> #include <list> +#include <map> #include "root.h" #include "aggregate.h" @@ -76,6 +77,8 @@ typedef std::vector<IrFunction*> FunctionVector; FunctionVector functions; IrFunction* func(); + // ir data associated with function declarations + std::map<FuncDeclaration*, IrFunction*> irFunc; llvm::Function* topfunc(); TypeFunction* topfunctype();