summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-03-11 17:27:51 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-03-11 17:27:51 +0000
commit000b580b130437454b9e2f194cd7a9bbc437cdca (patch)
tree6ba96b41f81064a43c4e5af408fca8656d5d4590
parent91ebd71e26660d2120905ac506065fd6321f1ff5 (diff)
downloadbcm5719-llvm-000b580b130437454b9e2f194cd7a9bbc437cdca.tar.gz
bcm5719-llvm-000b580b130437454b9e2f194cd7a9bbc437cdca.zip
[MachineIRBuilder] Rename the setter of MF for consistency with the getter.
llvm-svn: 263262
-rw-r--r--llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h2
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp2
-rw-r--r--llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
index 7db3efb9f27..2ac72bf0dad 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
@@ -69,7 +69,7 @@ public:
/// Setters for the insertion point.
/// @{
/// Set the MachineFunction where to build instructions.
- void setFunction(MachineFunction &);
+ void setMF(MachineFunction &);
/// Set the insertion point to the beginning (\p Beginning = true) or end
/// (\p Beginning = false) of \p MBB.
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index f8a5e0485fd..adf5133de50 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -108,7 +108,7 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &MF) {
if (F.empty())
return false;
CLI = MF.getSubtarget().getCallLowering();
- MIRBuilder.setFunction(MF);
+ MIRBuilder.setMF(MF);
MRI = &MF.getRegInfo();
// Setup the arguments.
MachineBasicBlock &MBB = getOrCreateBB(F.front());
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index 5e0cbb13e37..d79c8188fb4 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -20,7 +20,7 @@
using namespace llvm;
-void MachineIRBuilder::setFunction(MachineFunction &MF) {
+void MachineIRBuilder::setMF(MachineFunction &MF) {
this->MF = &MF;
this->MBB = nullptr;
this->TII = MF.getSubtarget().getInstrInfo();
OpenPOWER on IntegriCloud