From 30e23dacbc3498603e62406e26c1c672977a3ac8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Apr 2002 05:13:04 +0000 Subject: Convert AddedInstrMapType to contain AddedInstrns by value instead of by pointer so that they do not all get leaked! llvm-svn: 2188 --- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h') 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 InstrnsBefore;// Added insts BEFORE an existing inst std::deque InstrnsAfter; // Added insts AFTER an existing inst }; -typedef std::hash_map AddedInstrMapType; +typedef std::map AddedInstrMapType; -- cgit v1.2.3