From db6596e551ffd42326964b8e93dccb1dafd80d93 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 29 Oct 2002 19:38:46 +0000 Subject: Move CallArgsDescriptor into this class instead of making it an annotation on the machine instruction. llvm-svn: 4398 --- llvm/lib/CodeGen/MachineCodeForInstruction.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/MachineCodeForInstruction.cpp') diff --git a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp index f3080628ee8..7b2fb75c653 100644 --- a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp +++ b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp @@ -17,6 +17,7 @@ #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineInstrAnnot.h" #include "llvm/CodeGen/InstrSelection.h" AnnotationID MCFI_AID( @@ -55,4 +56,8 @@ MachineCodeForInstruction::~MachineCodeForInstruction() // Free the MachineInstr objects allocated, if any. for (unsigned i=0, N = size(); i < N; i++) delete (*this)[i]; + + // Free the CallArgsDescriptor if it exists. + if (callArgsDesc) + delete callArgsDesc; } -- cgit v1.2.3