diff options
author | Devang Patel <dpatel@apple.com> | 2011-10-03 20:59:18 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-10-03 20:59:18 +0000 |
commit | 0e6a24d92ab4661bb39f838ac390ccb17f649cb5 (patch) | |
tree | ac7a70b2b813058cb97889ac22b6d082cd4736b5 /lib/VMCore | |
parent | f8bf43ec99d4410c3e351c76f806208d1204129e (diff) | |
download | external_llvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.zip external_llvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.tar.gz external_llvm-0e6a24d92ab4661bb39f838ac390ccb17f649cb5.tar.bz2 |
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/VMCore')
-rw-r--r-- | lib/VMCore/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 42896dd..e2b659b 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) { |