summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-09 22:36:41 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-09 22:36:41 +0000
commita82042eb4c522e70f90ca5fe06b8f76940e434f7 (patch)
tree5d04025455ac6fb2f75ff367b18ce0ddd4c3900a /llvm/include/llvm-c
parentfb85e6288bde017cf4a40f0be4680975541f5766 (diff)
downloadbcm5719-llvm-a82042eb4c522e70f90ca5fe06b8f76940e434f7.tar.gz
bcm5719-llvm-a82042eb4c522e70f90ca5fe06b8f76940e434f7.zip
Improve the C API echo test tool to emit basic block is the right order.
Summary: As per title. Also add a facility method to get the name of a basic block from the C API. Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16912 llvm-svn: 260309
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 6899f07696d..8e644c3cc9d 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -2106,6 +2106,11 @@ LLVMBool LLVMValueIsBasicBlock(LLVMValueRef Val);
LLVMBasicBlockRef LLVMValueAsBasicBlock(LLVMValueRef Val);
/**
+ * Obtain the string name of a basic block.
+ */
+const char *LLVMGetBasicBlockName(LLVMBasicBlockRef BB);
+
+/**
* Obtain the function to which a basic block belongs.
*
* @see llvm::BasicBlock::getParent()
OpenPOWER on IntegriCloud