Cut down include pollution and number of frivolous consts.
authorChris Lattner <sabre@nondot.org>
Mon, 4 Feb 2002 16:31:03 +0000 (16:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 4 Feb 2002 16:31:03 +0000 (16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1683 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LiveVar/BBLiveVar.h
lib/Target/SparcV9/LiveVar/BBLiveVar.h

index 147d63321c887861e22af3592dd024017b648f56..08ccd2fe5c00aa211d6bd7a6a1732b66b403b049 100644 (file)
 
 #include "LiveVarSet.h"
 #include "LiveVarMap.h"
+class Method;
 
-#include "llvm/BasicBlock.h"
-#include "llvm/Instruction.h"
-#include "llvm/Type.h"
-#include "llvm/iOther.h"
-
-
-class BBLiveVar 
-{
+class BBLiveVar {
   const BasicBlock* BaseBB;     // pointer to BasicBlock
-  unsigned int POId;            // Post-Order ID
+  unsigned POId;                // Post-Order ID
 
   LiveVarSet DefSet;            // Def set for LV analysis
   LiveVarSet InSet, OutSet;     // In & Out for LV analysis
@@ -31,9 +25,9 @@ class BBLiveVar
   std::hash_map<const Value *, const BasicBlock *> PhiArgMap;  
 
   // method to propogate an InSet to OutSet of a predecessor
-  bool setPropagate( LiveVarSet *const OutSetOfPred, 
-                    const LiveVarSet *const InSetOfThisBB,
-                    const BasicBlock *const PredBB);
+  bool setPropagate( LiveVarSet *OutSetOfPred, 
+                    const LiveVarSet *InSetOfThisBB,
+                    const BasicBlock *PredBB);
 
   // To add an operand which is a def
   void  addDef(const Value *Op); 
@@ -42,12 +36,12 @@ class BBLiveVar
   void  addUse(const Value *Op);
 
  public:
-  BBLiveVar( const BasicBlock* baseBB, unsigned int POId);
+  BBLiveVar(const BasicBlock* baseBB, unsigned POId);
 
   inline bool isInSetChanged() const { return InSetChanged; }    
   inline bool isOutSetChanged() const { return OutSetChanged; }
 
-  inline unsigned int getPOId() const { return POId; }
+  inline unsigned getPOId() const { return POId; }
 
   void calcDefUseSets() ;         // calculates the Def & Use sets for this BB
   bool  applyTransferFunc();      // calcultes the In in terms of Out 
index 147d63321c887861e22af3592dd024017b648f56..08ccd2fe5c00aa211d6bd7a6a1732b66b403b049 100644 (file)
 
 #include "LiveVarSet.h"
 #include "LiveVarMap.h"
+class Method;
 
-#include "llvm/BasicBlock.h"
-#include "llvm/Instruction.h"
-#include "llvm/Type.h"
-#include "llvm/iOther.h"
-
-
-class BBLiveVar 
-{
+class BBLiveVar {
   const BasicBlock* BaseBB;     // pointer to BasicBlock
-  unsigned int POId;            // Post-Order ID
+  unsigned POId;                // Post-Order ID
 
   LiveVarSet DefSet;            // Def set for LV analysis
   LiveVarSet InSet, OutSet;     // In & Out for LV analysis
@@ -31,9 +25,9 @@ class BBLiveVar
   std::hash_map<const Value *, const BasicBlock *> PhiArgMap;  
 
   // method to propogate an InSet to OutSet of a predecessor
-  bool setPropagate( LiveVarSet *const OutSetOfPred, 
-                    const LiveVarSet *const InSetOfThisBB,
-                    const BasicBlock *const PredBB);
+  bool setPropagate( LiveVarSet *OutSetOfPred, 
+                    const LiveVarSet *InSetOfThisBB,
+                    const BasicBlock *PredBB);
 
   // To add an operand which is a def
   void  addDef(const Value *Op); 
@@ -42,12 +36,12 @@ class BBLiveVar
   void  addUse(const Value *Op);
 
  public:
-  BBLiveVar( const BasicBlock* baseBB, unsigned int POId);
+  BBLiveVar(const BasicBlock* baseBB, unsigned POId);
 
   inline bool isInSetChanged() const { return InSetChanged; }    
   inline bool isOutSetChanged() const { return OutSetChanged; }
 
-  inline unsigned int getPOId() const { return POId; }
+  inline unsigned getPOId() const { return POId; }
 
   void calcDefUseSets() ;         // calculates the Def & Use sets for this BB
   bool  applyTransferFunc();      // calcultes the In in terms of Out