mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Increase constness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54a6662da3
commit
6557262ee7
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user