summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-11 21:37:54 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-11 21:37:54 +0000
commit2f43208c9a5564fa9e13fe72082099322fd5e426 (patch)
treec05ee12d6886db4ab0085eaa64c65bdc7159e3c4 /llvm/include/llvm-c
parent2580901461d06db2da15d4748c2de1fe79fc4d63 (diff)
downloadbcm5719-llvm-2f43208c9a5564fa9e13fe72082099322fd5e426.tar.gz
bcm5719-llvm-2f43208c9a5564fa9e13fe72082099322fd5e426.zip
Add support for phi nodes in the LLVM C API test
Summary: This required to add binding to Instruction::removeFromParent so that instruction can be forward declared and then moved at the right place. Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17057 llvm-svn: 260597
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 7224adfacc9..fab975f3742 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -2332,6 +2332,16 @@ LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst);
* Remove and delete an instruction.
*
* The instruction specified is removed from its containing building
+ * block but is kept alive.
+ *
+ * @see llvm::Instruction::removeFromParent()
+ */
+void LLVMInstructionRemoveFromParent(LLVMValueRef Inst);
+
+/**
+ * Remove and delete an instruction.
+ *
+ * The instruction specified is removed from its containing building
* block and then deleted.
*
* @see llvm::Instruction::eraseFromParent()
OpenPOWER on IntegriCloud