diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-09 05:13:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-09 05:13:04 +0000 |
commit | 0b0ffa0800c51589a3b2f2371c9f6a0092bddaeb (patch) | |
tree | 4a296abd3ab84524b8cf0e84f555dcb9a8c52dab /lib/CodeGen/RegAlloc/PhyRegAlloc.h | |
parent | f60c3fe8c8dc70946ea2f19107a6fc0211456229 (diff) |
Convert AddedInstrMapType to contain AddedInstrns by value instead of by
pointer so that they do not all get leaked!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index a38197191b..4976c9bf9a 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/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; |