1
0
mirror of https://github.com/RPCS3/llvm.git synced 2025-03-07 10:07:17 +00:00

fix typos; NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjay Patel 2016-01-06 00:18:29 +00:00
parent 325442be58
commit a66b6e651c

@ -76,22 +76,21 @@ iplist<Instruction>::iterator Instruction::eraseFromParent() {
return getParent()->getInstList().erase(getIterator()); return getParent()->getInstList().erase(getIterator());
} }
/// insertBefore - Insert an unlinked instructions into a basic block /// Insert an unlinked instruction into a basic block immediately before the
/// immediately before the specified instruction. /// specified instruction.
void Instruction::insertBefore(Instruction *InsertPos) { void Instruction::insertBefore(Instruction *InsertPos) {
InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this); InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this);
} }
/// insertAfter - Insert an unlinked instructions into a basic block /// Insert an unlinked instruction into a basic block immediately after the
/// immediately after the specified instruction. /// specified instruction.
void Instruction::insertAfter(Instruction *InsertPos) { void Instruction::insertAfter(Instruction *InsertPos) {
InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(), InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(),
this); this);
} }
/// moveBefore - Unlink this instruction from its current basic block and /// Unlink this instruction from its current basic block and insert it into the
/// insert it into the basic block that MovePos lives in, right before /// basic block that MovePos lives in, right before MovePos.
/// MovePos.
void Instruction::moveBefore(Instruction *MovePos) { void Instruction::moveBefore(Instruction *MovePos) {
MovePos->getParent()->getInstList().splice( MovePos->getParent()->getInstList().splice(
MovePos->getIterator(), getParent()->getInstList(), getIterator()); MovePos->getIterator(), getParent()->getInstList(), getIterator());