[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 26 18:31:13 PDT 2003
Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.10 -> 1.11
---
Log message:
Code generation phases are not allowed to modify the LLVM representation.
Because of this, we'll make the MBB->BB mapping const as it should be
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.10 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.11
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.10 Fri Dec 13 01:30:45 2002
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Sat Jul 26 18:30:37 2003
@@ -15,15 +15,15 @@
class MachineBasicBlock {
std::vector<MachineInstr*> Insts;
MachineBasicBlock *Prev, *Next;
- BasicBlock *BB;
+ const BasicBlock *BB;
public:
- MachineBasicBlock(BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
+ MachineBasicBlock(const BasicBlock *bb = 0) : Prev(0), Next(0), BB(bb) {}
~MachineBasicBlock() {}
/// getBasicBlock - Return the LLVM basic block that this instance
/// corresponded to originally.
///
- BasicBlock *getBasicBlock() const { return BB; }
+ const BasicBlock *getBasicBlock() const { return BB; }
typedef std::vector<MachineInstr*>::iterator iterator;
typedef std::vector<MachineInstr*>::const_iterator const_iterator;
More information about the llvm-commits
mailing list