mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
rename TargetInstrDescriptor -> TargetInstrDesc.
Make MachineInstr::getDesc return a reference instead of a pointer, since it can never be null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -132,9 +132,9 @@ void ilist_traits<MachineInstr>::transferNodesFromList(
|
||||
|
||||
MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() {
|
||||
iterator I = end();
|
||||
while (I != begin() && (--I)->getDesc()->isTerminator())
|
||||
while (I != begin() && (--I)->getDesc().isTerminator())
|
||||
; /*noop */
|
||||
if (I != end() && !I->getDesc()->isTerminator()) ++I;
|
||||
if (I != end() && !I->getDesc().isTerminator()) ++I;
|
||||
return I;
|
||||
}
|
||||
|
||||
@ -261,7 +261,7 @@ void MachineBasicBlock::ReplaceUsesOfBlockWith(MachineBasicBlock *Old,
|
||||
MachineBasicBlock::iterator I = end();
|
||||
while (I != begin()) {
|
||||
--I;
|
||||
if (!I->getDesc()->isTerminator()) break;
|
||||
if (!I->getDesc().isTerminator()) break;
|
||||
|
||||
// Scan the operands of this machine instruction, replacing any uses of Old
|
||||
// with New.
|
||||
|
Reference in New Issue
Block a user