[llvm] r260593 - [GlobalISel] Make the getter for MBB in MachneIRBuilder public.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 13:20:35 PST 2016
Author: qcolombet
Date: Thu Feb 11 15:20:35 2016
New Revision: 260593
URL: http://llvm.org/viewvc/llvm-project?rev=260593&view=rev
Log:
[GlobalISel] Make the getter for MBB in MachneIRBuilder public.
Modified:
llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h?rev=260593&r1=260592&r2=260593&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h Thu Feb 11 15:20:35 2016
@@ -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.
More information about the llvm-commits
mailing list