mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
Expose BasicBlock::moveBefore and moveAfter in C API, patch
by Benjamin Saunders. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54cc2efb4e
commit
837a0c3b05
@ -750,6 +750,9 @@ LLVMBasicBlockRef LLVMInsertBasicBlock(LLVMBasicBlockRef InsertBeforeBB,
|
|||||||
const char *Name);
|
const char *Name);
|
||||||
void LLVMDeleteBasicBlock(LLVMBasicBlockRef BB);
|
void LLVMDeleteBasicBlock(LLVMBasicBlockRef BB);
|
||||||
|
|
||||||
|
void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
|
||||||
|
void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
|
||||||
|
|
||||||
/* Operations on instructions */
|
/* Operations on instructions */
|
||||||
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst);
|
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst);
|
||||||
LLVMValueRef LLVMGetFirstInstruction(LLVMBasicBlockRef BB);
|
LLVMValueRef LLVMGetFirstInstruction(LLVMBasicBlockRef BB);
|
||||||
|
@ -1515,6 +1515,14 @@ void LLVMDeleteBasicBlock(LLVMBasicBlockRef BBRef) {
|
|||||||
unwrap(BBRef)->eraseFromParent();
|
unwrap(BBRef)->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) {
|
||||||
|
unwrap(BB)->moveBefore(unwrap(MovePos));
|
||||||
|
}
|
||||||
|
|
||||||
|
void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) {
|
||||||
|
unwrap(BB)->moveAfter(unwrap(MovePos));
|
||||||
|
}
|
||||||
|
|
||||||
/*--.. Operations on instructions ..........................................--*/
|
/*--.. Operations on instructions ..........................................--*/
|
||||||
|
|
||||||
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst) {
|
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user