diff options
author | Peter Zotov <whitequark@whitequark.org> | 2015-06-04 09:09:53 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2015-06-04 09:09:53 +0000 |
commit | c164a3f4e6e198fdccce38b794886f1829933833 (patch) | |
tree | fb4f2c512865ebfb8e156a8b5f5a046adc9a4ab0 /llvm/include/llvm-c | |
parent | b58159ab1fbaec7b525c5c9267c73d5117fed1a7 (diff) | |
download | bcm5719-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.h | 7 |
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() |