Increase constness.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 11 Feb 2004 17:55:09 +0000 (17:55 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 11 Feb 2004 17:55:09 +0000 (17:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11322 91177308-0d34-0410-b5e6-96231b3b80d8

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

index f54b42ab12a9fa7f155e1748640a48287b3e3ae7..be09e62ae437971b1501aafaec4c328d8c7aca12 100644 (file)
@@ -21,7 +21,9 @@
 
 namespace llvm {
 
-BBLiveVar::BBLiveVar(const BasicBlock &bb, MachineBasicBlock &mbb, unsigned id)
+BBLiveVar::BBLiveVar(const BasicBlock &bb,
+                     const MachineBasicBlock &mbb,
+                     unsigned id)
   : BB(bb), MBB(mbb), POID(id) {
   InSetChanged = OutSetChanged = false;
 
index 781143a93dfd4c47b930508dfac047bd50b13b23..7e5c72e3e4647a041c55f6999545553820b1fb3a 100644 (file)
@@ -35,7 +35,7 @@ extern LiveVarDebugLevel_t DEBUG_LV;
 
 class BBLiveVar {
   const BasicBlock &BB;         // pointer to BasicBlock
-  MachineBasicBlock &MBB;       // Pointer to MachineBasicBlock
+  const MachineBasicBlock &MBB; // Pointer to MachineBasicBlock
   unsigned POID;                // Post-Order ID
 
   ValueSet DefSet;           // Def set (with no preceding uses) for LV analysis
@@ -61,12 +61,12 @@ class BBLiveVar {
   void calcDefUseSets();         // calculates the Def & Use sets for this BB
 public:
 
-  BBLiveVar(const BasicBlock &BB, MachineBasicBlock &MBB, unsigned POID);
+  BBLiveVar(const BasicBlock &BB, const MachineBasicBlock &MBB, unsigned POID);
 
   inline bool isInSetChanged() const  { return InSetChanged; }    
   inline bool isOutSetChanged() const { return OutSetChanged; }
 
-  MachineBasicBlock &getMachineBasicBlock() const { return MBB; }
+  const MachineBasicBlock &getMachineBasicBlock() const { return MBB; }
 
   inline unsigned getPOId() const { return POID; }