summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-10-03 20:59:18 +0000
committerDevang Patel <dpatel@apple.com>2011-10-03 20:59:18 +0000
commit0e6a24d92ab4661bb39f838ac390ccb17f649cb5 (patch)
treeac7a70b2b813058cb97889ac22b6d082cd4736b5 /lib
parentf8bf43ec99d4410c3e351c76f806208d1204129e (diff)
downloadllvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.tar.gz
llvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.tar.bz2
llvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.tar.xz
Add C api for Instruction->eraseFromParent().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp
index 42896ddbad..e2b659b6a2 100644
--- a/lib/VMCore/Core.cpp
+++ b/lib/VMCore/Core.cpp
@@ -1508,6 +1508,10 @@ LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst) {
return wrap(--I);
}
+void LLVMInstructionEraseFromParent(LLVMValueRef Inst) {
+ unwrap<Instruction>(Inst)->eraseFromParent();
+}
+
/*--.. Call and invoke instructions ........................................--*/
unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr) {