diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-14 05:53:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-14 05:53:17 +0000 |
commit | d91aa14075d5c4c093ed1a84ea4b5397ce5f6eb4 (patch) | |
tree | 4989d5dde177efca1e5ad9e6e0df53ade3bc7c90 /include/llvm-c | |
parent | 672b93a3324cc1da6d374eed4c75c050a9cad7be (diff) | |
download | external_llvm-d91aa14075d5c4c093ed1a84ea4b5397ce5f6eb4.zip external_llvm-d91aa14075d5c4c093ed1a84ea4b5397ce5f6eb4.tar.gz external_llvm-d91aa14075d5c4c093ed1a84ea4b5397ce5f6eb4.tar.bz2 |
add C api for hte new type system rewrite API. Patch by Vitaly Lugovskiy!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r-- | include/llvm-c/Core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index e7818c1..e3dce58 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -387,6 +387,10 @@ LLVMTypeRef LLVMStructTypeInContext(LLVMContextRef C, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed); LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed); +LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char *Name); +void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, + unsigned ElementCount, LLVMBool Packed); + unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest); LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); @@ -408,7 +412,6 @@ LLVMTypeRef LLVMX86MMXTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMVoidType(void); LLVMTypeRef LLVMLabelType(void); -LLVMTypeRef LLVMOpaqueType(void); LLVMTypeRef LLVMX86MMXType(void); /*===-- Values ------------------------------------------------------------===*/ |