summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2015-06-04 09:09:53 +0000
committerPeter Zotov <whitequark@whitequark.org>2015-06-04 09:09:53 +0000
commitc164a3f4e6e198fdccce38b794886f1829933833 (patch)
treefb4f2c512865ebfb8e156a8b5f5a046adc9a4ab0 /llvm/include/llvm-c
parentb58159ab1fbaec7b525c5c9267c73d5117fed1a7 (diff)
downloadbcm5719-llvm-c164a3f4e6e198fdccce38b794886f1829933833.tar.gz
bcm5719-llvm-c164a3f4e6e198fdccce38b794886f1829933833.zip
[C API] Add LLVMStructGetTypeAtIndex.
Patch by deadalnix (Amaury SECHET). llvm-svn: 239029
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index effbd15c10d..73bff0b7ec4 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -998,6 +998,13 @@ unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
/**
+ * Get the type of the element at a given index in the structure.
+ *
+ * @see llvm::StructType::getTypeAtIndex()
+ */
+LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
+
+/**
* Determine whether a structure is packed.
*
* @see llvm::StructType::isPacked()
OpenPOWER on IntegriCloud