From 69aa1ccb07c93df492e3a609469c9af978777eaf Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 22 Dec 2003 03:47:58 +0000 Subject: [PATCH] Really release memory used by functions. Patch by Chris. llvm-svn: 10572 --- llvm/lib/Target/Sparc/Sparc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp index 505aeb8fe0c0..c608ca37c2ee 100644 --- a/llvm/lib/Target/Sparc/Sparc.cpp +++ b/llvm/lib/Target/Sparc/Sparc.cpp @@ -99,6 +99,7 @@ namespace { for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) for_each(FI->begin(), FI->end(), freeMachineCode); + MachineFunction::destruct(&F); return false; } };