mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-02 08:11:54 +00:00
[GlobalISel] Make the getter for MBB in MachneIRBuilder public.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260593 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b6079747f
commit
c7525b652c
@ -45,11 +45,6 @@ class MachineIRBuilder {
|
||||
bool Before;
|
||||
/// @}
|
||||
|
||||
MachineBasicBlock &getMBB() {
|
||||
assert(MBB && "MachineBasicBlock is not set");
|
||||
return *MBB;
|
||||
}
|
||||
|
||||
const TargetInstrInfo &getTII() {
|
||||
assert(TII && "TargetInstrInfo is not set");
|
||||
return *TII;
|
||||
@ -65,6 +60,12 @@ public:
|
||||
return *MF;
|
||||
}
|
||||
|
||||
/// Getter for the basic block we currently build.
|
||||
MachineBasicBlock &getMBB() {
|
||||
assert(MBB && "MachineBasicBlock is not set");
|
||||
return *MBB;
|
||||
}
|
||||
|
||||
/// Setters for the insertion point.
|
||||
/// @{
|
||||
/// Set MachineFunction where to build instructions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user