Mercurial > projects > ldc
diff gen/irstate.h @ 1508:e1e93343fc11
Move function codegen data from IrFunction to new FuncGen.
This change reduces memory consumption significantly by releasing the
memory held by the STL containers that are now inside FuncGen.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 20 Jun 2009 19:11:44 +0200 |
parents | 4dca8ed9d8b7 |
children | ad7f2f1862d6 |
line wrap: on
line diff
--- a/gen/irstate.h Tue Jun 16 23:00:27 2009 +0200 +++ b/gen/irstate.h Sat Jun 20 19:11:44 2009 +0200 @@ -182,7 +182,7 @@ template <typename InputIterator> llvm::CallSite IRState::CreateCallOrInvoke(LLValue* Callee, InputIterator ArgBegin, InputIterator ArgEnd, const char* Name) { - llvm::BasicBlock* pad = func()->landingPad; + llvm::BasicBlock* pad = func()->gen->landingPad; if(pad) { // intrinsics don't support invoking and 'nounwind' functions don't need it.