mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-30 08:39:02 +02:00
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.
This commit is contained in:
@@ -182,7 +182,7 @@ struct IRState
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user