summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitdbebc6f3f9a94537f5f4eaeb4d81e011da1a7fef (patch)
tree1b1084a6592a0544d6a04dd89667728ac93f89ac /llvm/lib
parentc3fc62b492295b24c269a6b9bd4c9d31484f9eed (diff)
downloadbcm5719-llvm-dbebc6f3f9a94537f5f4eaeb4d81e011da1a7fef.tar.gz
bcm5719-llvm-dbebc6f3f9a94537f5f4eaeb4d81e011da1a7fef.zip
Add C api for Instruction->eraseFromParent().
llvm-svn: 141023
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index 42896ddbad6..e2b659b6a2b 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud