From 5ac43defa3eadc06f7eb256459b72f23c92a665d Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Tue, 12 Apr 2016 00:07:14 +0000 Subject: [PATCH] [MachineIRBuilder] Expose the insertion point in the public API. It may be convenient to know where we are about to insert some code, for instance to save and then restore this insertion. llvm-svn: 266024 --- llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h index 3603259..efdc59a 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h @@ -50,9 +50,6 @@ class MachineIRBuilder { return *TII; } - /// Current insertion point for new instructions. - MachineBasicBlock::iterator getInsertPt(); - public: /// Getter for the function we currently build. MachineFunction &getMF() { @@ -66,6 +63,9 @@ public: return *MBB; } + /// Current insertion point for new instructions. + MachineBasicBlock::iterator getInsertPt(); + /// Setters for the insertion point. /// @{ /// Set the MachineFunction where to build instructions. -- 2.7.4