[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
Vikram Adve
vadve at cs.uiuc.edu
Tue Oct 29 13:39:00 PST 2002
Changes in directory llvm/lib/CodeGen:
MachineCodeForInstruction.cpp updated: 1.6 -> 1.7
---
Log message:
Move CallArgsDescriptor into this class instead of making it an
annotation on the machine instruction.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
diff -u llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.6 llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.7
--- llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.6 Sun Oct 27 19:21:55 2002
+++ llvm/lib/CodeGen/MachineCodeForInstruction.cpp Tue Oct 29 13:38:33 2002
@@ -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 @@
// 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;
}
More information about the llvm-commits
mailing list