[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:
Quentin Colombet 2016-02-11 21:20:35 +00:00
parent 6b6079747f
commit c7525b652c

View File

@ -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.