[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveRangeInfo.h

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 11:04:04 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

LiveRangeInfo.h updated: 1.13 -> 1.14

---
Log message:

Inline typedef, eliminate unused method



---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/LiveRangeInfo.h
diff -u llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.13 llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.14
--- llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.13	Sat Sep 28 12:05:43 2002
+++ llvm/include/llvm/CodeGen/LiveRangeInfo.h	Tue Oct 29 11:03:19 2002
@@ -32,7 +32,6 @@
 class Instruction;
 
 typedef hash_map<const Value*, LiveRange*> LiveRangeMapType;
-typedef std::vector<MachineInstr*> CallRetInstrListType;
 
 //----------------------------------------------------------------------------
 // Class LiveRangeInfo
@@ -53,7 +52,7 @@
 
   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,19 +89,13 @@
   
   // 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.





More information about the llvm-commits mailing list