aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm-c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-27 20:13:47 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-27 20:13:47 +0000
commit2476de6ea689c0a004547564677c275d480419d3 (patch)
tree054cd740a91cb46aa8c2a2a06a55510aff2864ce /include/llvm-c
parentc19a9cb76905b22abde0c4ca8ccd376daa643cd1 (diff)
downloadexternal_llvm-2476de6ea689c0a004547564677c275d480419d3.zip
external_llvm-2476de6ea689c0a004547564677c275d480419d3.tar.gz
external_llvm-2476de6ea689c0a004547564677c275d480419d3.tar.bz2
Adding bindings for target triple and data layout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 7dc1a07..3e5d201 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -149,6 +149,14 @@ void LLVMDisposeMessage(char *Message);
LLVMModuleRef LLVMModuleCreateWithName(const char *ModuleID);
void LLVMDisposeModule(LLVMModuleRef M);
+/* Data layout */
+const char *LLVMGetDataLayout(LLVMModuleRef M);
+void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple);
+
+/* Target triple */
+const char *LLVMGetTarget(LLVMModuleRef M);
+void LLVMSetTarget(LLVMModuleRef M, const char *Triple);
+
/* Same as Module::addTypeName. */
int LLVMAddTypeName(LLVMModuleRef M, const char *Name, LLVMTypeRef Ty);
void LLVMDeleteTypeName(LLVMModuleRef M, const char *Name);