summaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/LiveVar/BBLiveVar.h
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-11 17:55:09 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-11 17:55:09 +0000
commit6557262ee7ba7165eca15e42f94f2c4a474c2c7d (patch)
treeaf9d12f47b8dcf1d7b75771bb8813e46ca2ca8f7 /lib/Target/SparcV9/LiveVar/BBLiveVar.h
parent54a6662da36d2c45d33c2a20883d197720e28a8d (diff)
downloadllvm-6557262ee7ba7165eca15e42f94f2c4a474c2c7d.tar.gz
llvm-6557262ee7ba7165eca15e42f94f2c4a474c2c7d.tar.bz2
llvm-6557262ee7ba7165eca15e42f94f2c4a474c2c7d.tar.xz
Increase constness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/LiveVar/BBLiveVar.h')
-rw-r--r--lib/Target/SparcV9/LiveVar/BBLiveVar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.h b/lib/Target/SparcV9/LiveVar/BBLiveVar.h
index 781143a93d..7e5c72e3e4 100644
--- a/lib/Target/SparcV9/LiveVar/BBLiveVar.h
+++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.h
@@ -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; }