diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-07 19:13:06 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-07 19:13:06 +0000 |
commit | a49d435b2751bcdbf3adbc10b6098054caedb44b (patch) | |
tree | 373d1cd1a120d80bbd790ab7944f0d8f61348879 /llvm/include/llvm-c/Core.h | |
parent | 40bc74fde71c42cc0a1df20d03fb10dd4fd251d5 (diff) | |
download | bcm5719-llvm-a49d435b2751bcdbf3adbc10b6098054caedb44b.tar.gz bcm5719-llvm-a49d435b2751bcdbf3adbc10b6098054caedb44b.zip |
Cleanup some comments in the OCaml bindings.
Patch by Erick Tryzelaar.
llvm-svn: 48014
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 9b11df51931..1c3fc9ceb46 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -53,15 +53,15 @@ extern "C" { typedef struct LLVMOpaqueModule *LLVMModuleRef; /** - * Each value in the LLVM IR has a type, an instance of [lltype]. See the - * llvm::Type class. + * Each value in the LLVM IR has a type, an LLVMTypeRef. See the llvm::Type + * class. */ typedef struct LLVMOpaqueType *LLVMTypeRef; /** - * When building recursive types using [refine_type], [lltype] values may become - * invalid; use [lltypehandle] to resolve this problem. See the - * llvm::AbstractTypeHolder] class. + * When building recursive types using LLVMRefineType, LLVMTypeRef values may + * become invalid; use LLVMTypeHandleRef to resolve this problem. See the + * llvm::AbstractTypeHolder class. */ typedef struct LLVMOpaqueTypeHandle *LLVMTypeHandleRef; @@ -165,18 +165,21 @@ void LLVMDisposeMessage(char *Message); /*===-- Modules -----------------------------------------------------------===*/ /* Create and destroy modules. */ +/** See llvm::Module::Module. */ LLVMModuleRef LLVMModuleCreateWithName(const char *ModuleID); + +/** See llvm::Module::~Module. */ void LLVMDisposeModule(LLVMModuleRef M); -/* Data layout */ +/** Data layout. See Module::getDataLayout. */ const char *LLVMGetDataLayout(LLVMModuleRef M); void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple); -/* Target triple */ +/** Target triple. See Module::getTargetTriple. */ const char *LLVMGetTarget(LLVMModuleRef M); void LLVMSetTarget(LLVMModuleRef M, const char *Triple); -/* Same as Module::addTypeName. */ +/** See Module::addTypeName. */ int LLVMAddTypeName(LLVMModuleRef M, const char *Name, LLVMTypeRef Ty); void LLVMDeleteTypeName(LLVMModuleRef M, const char *Name); @@ -198,7 +201,10 @@ void LLVMDeleteTypeName(LLVMModuleRef M, const char *Name); * opaque type */ +/** See llvm::LLVMTypeKind::getTypeID. */ LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty); + +/** See llvm::DerivedType::refineAbstractTypeTo. */ void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType); /* Operations on integer types */ |