summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PatchableFunction.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-01-13 09:58:52 +0000
committerDiana Picus <diana.picus@linaro.org>2017-01-13 09:58:52 +0000
commit116bbab4e4f440364bdaa900bc70d6c262a0b973 (patch)
treee3dc7375d120e028e5e16212b47cadf53753c87c /llvm/lib/CodeGen/PatchableFunction.cpp
parent4f8c3e18824278a2fc59f273af5793ee8d5e2618 (diff)
downloadbcm5719-llvm-116bbab4e4f440364bdaa900bc70d6c262a0b973.tar.gz
bcm5719-llvm-116bbab4e4f440364bdaa900bc70d6c262a0b973.zip
[CodeGen] Rename MachineInstrBuilder::addOperand. NFC
Rename from addOperand to just add, to match the other method that has been added to MachineInstrBuilder for adding more than just 1 operand. See https://reviews.llvm.org/D28057 for the whole discussion. Differential Revision: https://reviews.llvm.org/D28556 llvm-svn: 291891
Diffstat (limited to 'llvm/lib/CodeGen/PatchableFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/PatchableFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PatchableFunction.cpp b/llvm/lib/CodeGen/PatchableFunction.cpp
index ad9166f1ed2..00e72971a01 100644
--- a/llvm/lib/CodeGen/PatchableFunction.cpp
+++ b/llvm/lib/CodeGen/PatchableFunction.cpp
@@ -75,7 +75,7 @@ bool PatchableFunction::runOnMachineFunction(MachineFunction &MF) {
.addImm(FirstActualI->getOpcode());
for (auto &MO : FirstActualI->operands())
- MIB.addOperand(MO);
+ MIB.add(MO);
FirstActualI->eraseFromParent();
MF.ensureAlignment(4);
OpenPOWER on IntegriCloud