diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 17:03:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 17:03:19 +0000 |
commit | 88da77c7394144f8179a16a33eead31ea7168faa (patch) | |
tree | 22f7de3fea8e2d33dc5a44ac2a9b794c81573ba8 /lib/CodeGen/RegAlloc/LiveRangeInfo.h | |
parent | 67eaf73c89649d3b3af6e092fae742d018a233b5 (diff) | |
download | external_llvm-88da77c7394144f8179a16a33eead31ea7168faa.zip external_llvm-88da77c7394144f8179a16a33eead31ea7168faa.tar.gz external_llvm-88da77c7394144f8179a16a33eead31ea7168faa.tar.bz2 |
Inline typedef, eliminate unused method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/LiveRangeInfo.h')
-rw-r--r-- | lib/CodeGen/RegAlloc/LiveRangeInfo.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/CodeGen/RegAlloc/LiveRangeInfo.h b/lib/CodeGen/RegAlloc/LiveRangeInfo.h index 48abdc0..05e9aa8 100644 --- a/lib/CodeGen/RegAlloc/LiveRangeInfo.h +++ b/lib/CodeGen/RegAlloc/LiveRangeInfo.h @@ -32,7 +32,6 @@ class Function; class Instruction; typedef hash_map<const Value*, LiveRange*> LiveRangeMapType; -typedef std::vector<MachineInstr*> CallRetInstrListType; //---------------------------------------------------------------------------- // Class LiveRangeInfo @@ -53,7 +52,7 @@ class LiveRangeInfo { const MachineRegInfo& MRI; // machine reg info - CallRetInstrListType CallRetInstrList; // a list of all call/ret instrs + std::vector<MachineInstr*> CallRetInstrList; // a list of all call/ret instrs //------------ Private methods (see LiveRangeInfo.cpp for description)------- @@ -90,20 +89,14 @@ public: // return the common live range map for this method // - inline const LiveRangeMapType *const getLiveRangeMap() const + inline const LiveRangeMapType *getLiveRangeMap() const { return &LiveRangeMap; } // Method sed to get the corresponding live range of a Value // - inline LiveRange *getLiveRangeForValue( const Value *const Val) + inline LiveRange *getLiveRangeForValue( const Value *Val) { return LiveRangeMap[Val]; } - // Method used to get the Call and Return instruction list - // - inline CallRetInstrListType &getCallRetInstrList() { - return CallRetInstrList; - } - // Method for coalescing live ranges. Called only after interference info // is calculated. // |