diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 16:31:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 16:31:42 +0000 |
commit | 39fdbda361ba08ffd09f7632d88d28f6e7e19ba6 (patch) | |
tree | ff4e08f083e76a9b461fc89612b7448a4938f5e6 | |
parent | 65b1ad9042f30898cd41f7bdbf760d014efd6888 (diff) |
Use generic pointer hashes instead of custom ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1684 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/LiveVar/LiveVarMap.h | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/include/llvm/Analysis/LiveVar/LiveVarMap.h b/include/llvm/Analysis/LiveVar/LiveVarMap.h index 44b3bbb7a4..a9e170170f 100644 --- a/include/llvm/Analysis/LiveVar/LiveVarMap.h +++ b/include/llvm/Analysis/LiveVar/LiveVarMap.h @@ -1,4 +1,4 @@ -/* Title: LiveVarMap.h +/* Title: LiveVarMap.h -*- C++ -*- Author: Ruchira Sasanka Date: Jun 30, 01 Purpose: This file contains the class for a map between the BasicBlock class @@ -8,39 +8,17 @@ corresponding BasicBlock) */ - #ifndef LIVE_VAR_MAP_H #define LIVE_VAR_MAP_H -#include <ext/hash_map> +#include "Support/HashExtras.h" +class MachineInstr; class BasicBlock; class BBLiveVar; +class LiveVarSet; - -struct hashFuncMInst { // sturcture containing the hash function for MInst - inline size_t operator () (const MachineInstr *val) const { - return (size_t) val; - } -}; - - -struct hashFuncBB { // sturcture containing the hash function for BB - inline size_t operator () (const BasicBlock *val) const { - return (size_t) val; - } -}; - - - - -typedef std::hash_map<const BasicBlock *, - BBLiveVar *, hashFuncBB > BBToBBLiveVarMapType; - -typedef std::hash_map<const MachineInstr *, const LiveVarSet *, - hashFuncMInst> MInstToLiveVarSetMapType; - +typedef std::hash_map<const BasicBlock *, BBLiveVar *> BBToBBLiveVarMapType; +typedef std::hash_map<const MachineInstr *, const LiveVarSet *> MInstToLiveVarSetMapType; #endif - - |