From: Vikram S. Adve Date: Sun, 24 Mar 2002 03:58:02 +0000 (+0000) Subject: Refix bug: Add back method MachineCodeForInstruction::dropAllReferences. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dfe412dc8b65301e1172bc12894edd3d56fadc44;p=oota-llvm.git Refix bug: Add back method MachineCodeForInstruction::dropAllReferences. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h index 5d0cdd91330..03e02501cb9 100644 --- a/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/include/llvm/CodeGen/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 &getTempValues() const { return tempVec; } std::vector &getTempValues() { return tempVec; } diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h index 5d0cdd91330..03e02501cb9 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 &getTempValues() const { return tempVec; } std::vector &getTempValues() { return tempVec; }