aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/lib/IR/Instruction.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:19:13 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:19:13 +0000
commit4d0b32cd7f47f4836ea0a7a9da24d3576c6e2fe0 (patch)
treeb7c03c042b220d85a294b0e2e89936b631d3e6ad /contrib/llvm/lib/IR/Instruction.cpp
parent9b52dc8469bb3471e8caea1a48274f2ff3085584 (diff)
parent8a6c1c25bce0267ee4072bd7b786b921e8a66a35 (diff)
Update llvm to trunk r256945.
Notes
Notes: svn path=/projects/clang380-import/; revision=293265
Diffstat (limited to 'contrib/llvm/lib/IR/Instruction.cpp')
-rw-r--r--contrib/llvm/lib/IR/Instruction.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/llvm/lib/IR/Instruction.cpp b/contrib/llvm/lib/IR/Instruction.cpp
index a0bd2c9698e8..4b33d2e66ea1 100644
--- a/contrib/llvm/lib/IR/Instruction.cpp
+++ b/contrib/llvm/lib/IR/Instruction.cpp
@@ -76,22 +76,21 @@ iplist<Instruction>::iterator Instruction::eraseFromParent() {
return getParent()->getInstList().erase(getIterator());
}
-/// insertBefore - Insert an unlinked instructions into a basic block
-/// immediately before the specified instruction.
+/// Insert an unlinked instruction into a basic block immediately before the
+/// specified instruction.
void Instruction::insertBefore(Instruction *InsertPos) {
InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this);
}
-/// insertAfter - Insert an unlinked instructions into a basic block
-/// immediately after the specified instruction.
+/// Insert an unlinked instruction into a basic block immediately after the
+/// specified instruction.
void Instruction::insertAfter(Instruction *InsertPos) {
InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(),
this);
}
-/// moveBefore - Unlink this instruction from its current basic block and
-/// insert it into the basic block that MovePos lives in, right before
-/// MovePos.
+/// Unlink this instruction from its current basic block and insert it into the
+/// basic block that MovePos lives in, right before MovePos.
void Instruction::moveBefore(Instruction *MovePos) {
MovePos->getParent()->getInstList().splice(
MovePos->getIterator(), getParent()->getInstList(), getIterator());