[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp PHIElimination.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 26 18:26:01 PDT 2003
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.40 -> 1.41
PHIElimination.cpp updated: 1.10 -> 1.11
---
Log message:
Const correctness fixes
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.40 llvm/lib/CodeGen/MachineFunction.cpp:1.41
--- llvm/lib/CodeGen/MachineFunction.cpp:1.40 Mon Jun 30 16:58:43 2003
+++ llvm/lib/CodeGen/MachineFunction.cpp Sat Jul 26 18:24:56 2003
@@ -126,7 +126,7 @@
getConstantPool()->print(OS);
for (const_iterator BB = begin(); BB != end(); ++BB) {
- BasicBlock *LBB = BB->getBasicBlock();
+ const BasicBlock *LBB = BB->getBasicBlock();
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
for (MachineBasicBlock::const_iterator I = BB->begin(); I != BB->end();++I){
OS << "\t";
Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.10 llvm/lib/CodeGen/PHIElimination.cpp:1.11
--- llvm/lib/CodeGen/PHIElimination.cpp:1.10 Thu Jun 5 12:15:04 2003
+++ llvm/lib/CodeGen/PHIElimination.cpp Sat Jul 26 18:24:56 2003
@@ -200,8 +200,8 @@
// at an appropriate point later.
//
bool ValueIsLive = false;
- BasicBlock *BB = opBlock.getBasicBlock();
- for (succ_iterator SI = succ_begin(BB), E = succ_end(BB);
+ const BasicBlock *BB = opBlock.getBasicBlock();
+ for (succ_const_iterator SI = succ_begin(BB), E = succ_end(BB);
SI != E && !ValueIsLive; ++SI) {
const std::pair<MachineBasicBlock*, unsigned> &
SuccInfo = LV->getBasicBlockInfo(*SI);
More information about the llvm-commits
mailing list