Refix bug: Add back method MachineCodeForInstruction::dropAllReferences.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 24 Mar 2002 03:58:02 +0000 (03:58 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 24 Mar 2002 03:58:02 +0000 (03:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1980 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeForInstruction.h
lib/Target/SparcV9/MachineCodeForInstruction.h

index 5d0cdd9133055cced6cd56a869a28a1bcc60b38a..03e02501cb9d2fcb406a02fa9203d34c88e3a7e4 100644 (file)
@@ -36,6 +36,13 @@ public:
   static MachineCodeForInstruction &get(const Instruction *I);
   static void destroy(const Instruction *I);
 
+  // dropAllReferences() - This function drops all references within
+  // temporary (hidden) instructions created in implementing the original
+  // VM intruction.  This ensures there are no remaining "uses" within
+  // these hidden instructions, before the values of a method are freed.
+  //
+  void dropAllReferences();
+
   const std::vector<Value*> &getTempValues() const { return tempVec; }
         std::vector<Value*> &getTempValues()       { return tempVec; }
   
index 5d0cdd9133055cced6cd56a869a28a1bcc60b38a..03e02501cb9d2fcb406a02fa9203d34c88e3a7e4 100644 (file)
@@ -36,6 +36,13 @@ public:
   static MachineCodeForInstruction &get(const Instruction *I);
   static void destroy(const Instruction *I);
 
+  // dropAllReferences() - This function drops all references within
+  // temporary (hidden) instructions created in implementing the original
+  // VM intruction.  This ensures there are no remaining "uses" within
+  // these hidden instructions, before the values of a method are freed.
+  //
+  void dropAllReferences();
+
   const std::vector<Value*> &getTempValues() const { return tempVec; }
         std::vector<Value*> &getTempValues()       { return tempVec; }