mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
[MachineBasicBlock] Add getFirstNonDebugInstr to complement getLastNonDebugInstr
Use it in CodeGen where applicable. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -469,6 +469,13 @@ public:
|
||||
/// and return an instr_iterator instead.
|
||||
instr_iterator getFirstInstrTerminator();
|
||||
|
||||
/// getFirstNonDebugInstr - returns an iterator to the first non-debug
|
||||
/// instruction in the basic block, or end()
|
||||
iterator getFirstNonDebugInstr();
|
||||
const_iterator getFirstNonDebugInstr() const {
|
||||
return const_cast<MachineBasicBlock *>(this)->getFirstNonDebugInstr();
|
||||
}
|
||||
|
||||
/// getLastNonDebugInstr - returns an iterator to the last non-debug
|
||||
/// instruction in the basic block, or end()
|
||||
iterator getLastNonDebugInstr();
|
||||
|
Reference in New Issue
Block a user