mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Add C api for Instruction->eraseFromParent().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8bf43ec99
commit
0e6a24d92a
@ -776,6 +776,7 @@ LLVMValueRef LLVMGetLastInstruction(LLVMBasicBlockRef BB);
|
|||||||
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst);
|
LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst);
|
||||||
LLVMValueRef LLVMGetNextInstruction(LLVMValueRef Inst);
|
LLVMValueRef LLVMGetNextInstruction(LLVMValueRef Inst);
|
||||||
LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst);
|
LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst);
|
||||||
|
void LLVMInstructionEraseFromParent(LLVMValueRef Inst);
|
||||||
|
|
||||||
/* Operations on call sites */
|
/* Operations on call sites */
|
||||||
void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned CC);
|
void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned CC);
|
||||||
|
@ -1508,6 +1508,10 @@ LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst) {
|
|||||||
return wrap(--I);
|
return wrap(--I);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LLVMInstructionEraseFromParent(LLVMValueRef Inst) {
|
||||||
|
unwrap<Instruction>(Inst)->eraseFromParent();
|
||||||
|
}
|
||||||
|
|
||||||
/*--.. Call and invoke instructions ........................................--*/
|
/*--.. Call and invoke instructions ........................................--*/
|
||||||
|
|
||||||
unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr) {
|
unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user