mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 17:42:40 +00:00
Const correctness fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9cdaa63f57
commit
9e2dd8f8d7
@ -126,7 +126,7 @@ void MachineFunction::print(std::ostream &OS) const {
|
||||
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";
|
||||
|
@ -200,8 +200,8 @@ bool PNE::EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB) {
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user