Move CallArgsDescriptor into this class instead of making it an

annotation on the machine instruction.

llvm-svn: 4398
This commit is contained in:
Vikram S. Adve
2002-10-29 19:38:46 +00:00
parent ea0d174f1a
commit db6596e551
2 changed files with 12 additions and 2 deletions

View File

@@ -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;
}