mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
add new helper function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
287921d188
commit
0fe34d8912
@ -65,6 +65,15 @@ void Instruction::eraseFromParent() {
|
||||
getParent()->getInstList().erase(this);
|
||||
}
|
||||
|
||||
/// moveBefore - 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,getParent()->getInstList(),
|
||||
this);
|
||||
}
|
||||
|
||||
|
||||
const char *Instruction::getOpcodeName(unsigned OpCode) {
|
||||
switch (OpCode) {
|
||||
// Terminators
|
||||
|
Loading…
x
Reference in New Issue
Block a user