summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-07-14 19:09:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-07-14 19:09:08 +0000
commit784ad24bad4764ba99b68f6eaf7eda83be6c97ce (patch)
tree8c32df782a31f099f6a4b554809b7751fdb8562c /llvm/include/llvm-c/Core.h
parent9c61809c2369d78ddf118295229b69cf8bef050f (diff)
downloadbcm5719-llvm-784ad24bad4764ba99b68f6eaf7eda83be6c97ce.tar.gz
bcm5719-llvm-784ad24bad4764ba99b68f6eaf7eda83be6c97ce.zip
Add LLVMConstNamedStruct to the C api to let its users create constants
of named struct types. llvm-svn: 135178
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index fc33ab7f824..a4456dd13e4 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -565,6 +565,9 @@ LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,
LLVMValueRef *ConstantVals, unsigned Length);
LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count,
LLVMBool Packed);
+LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
+ LLVMValueRef *ConstantVals,
+ unsigned Count);
LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size);
/* Constant expressions */
OpenPOWER on IntegriCloud