From 05568bbd98af4f00d8617972ca8acc8768e235c8 Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Thu, 27 Dec 2007 20:13:47 +0000 Subject: Adding bindings for target triple and data layout. llvm-svn: 45369 --- llvm/include/llvm-c/Core.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm/include/llvm-c') diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 7dc1a07657b..3e5d201f077 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/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); -- cgit v1.2.3