mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add a MachineBasicBlock::getParent() method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
#include <iosfwd>
|
||||
|
||||
namespace llvm {
|
||||
class MachineFunction;
|
||||
|
||||
// ilist_traits
|
||||
template <>
|
||||
class ilist_traits<MachineInstr>
|
||||
{
|
||||
class ilist_traits<MachineInstr> {
|
||||
// this is only set by the MachineBasicBlock owning the ilist
|
||||
friend class MachineBasicBlock;
|
||||
MachineBasicBlock* parent;
|
||||
@@ -70,7 +70,11 @@ public:
|
||||
/// corresponded to originally.
|
||||
///
|
||||
const BasicBlock *getBasicBlock() const { return BB; }
|
||||
|
||||
|
||||
/// getParent - Return the MachineFunction containing this basic block.
|
||||
///
|
||||
const MachineFunction *getParent() const;
|
||||
|
||||
typedef ilist<MachineInstr>::iterator iterator;
|
||||
typedef ilist<MachineInstr>::const_iterator const_iterator;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
|
Reference in New Issue
Block a user