summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 05:13:04 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 05:13:04 +0000
commit30e23dacbc3498603e62406e26c1c672977a3ac8 (patch)
tree96f728f4b85d4fb2cfddcdb67002af922131d780 /llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
parentf85684a92d46f44fc3a25517055ccc9c8394fe2a (diff)
downloadbcm5719-llvm-30e23dacbc3498603e62406e26c1c672977a3ac8.tar.gz
bcm5719-llvm-30e23dacbc3498603e62406e26c1c672977a3ac8.zip
Convert AddedInstrMapType to contain AddedInstrns by value instead of by
pointer so that they do not all get leaked! llvm-svn: 2188
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index a38197191b1..4976c9bf9a1 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -48,14 +48,12 @@ namespace cfg { class LoopInfo; }
// to store such instructions added before and after an existing instruction.
//----------------------------------------------------------------------------
-class AddedInstrns
-{
- public:
+struct AddedInstrns {
std::deque<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst
std::deque<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst
};
-typedef std::hash_map<const MachineInstr *, AddedInstrns *> AddedInstrMapType;
+typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType;
OpenPOWER on IntegriCloud