aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/MachineCodeForInstruction.h
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:58:02 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:58:02 +0000
commitdfe412dc8b65301e1172bc12894edd3d56fadc44 (patch)
tree6d6f47f354f1bad46fc4aad116499eefe1e8dd6c /lib/Target/SparcV9/MachineCodeForInstruction.h
parent4cbd55062d2b596008d2f20d74401a2144982b2d (diff)
Refix bug: Add back method MachineCodeForInstruction::dropAllReferences.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/MachineCodeForInstruction.h')
-rw-r--r--lib/Target/SparcV9/MachineCodeForInstruction.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h
index 5d0cdd9133..03e02501cb 100644
--- a/lib/Target/SparcV9/MachineCodeForInstruction.h
+++ b/lib/Target/SparcV9/MachineCodeForInstruction.h
@@ -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; }