From da1435f86ebc9886dd7704294e01d192d79e069c Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Wed, 19 Dec 2007 22:30:40 +0000 Subject: Adding bindings for memory buffers and module providers. Switching to exceptions rather than variants for error handling in Ocaml. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45226 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Analysis.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/llvm-c/Analysis.h') diff --git a/include/llvm-c/Analysis.h b/include/llvm-c/Analysis.h index b57577b058..f93e18aeca 100644 --- a/include/llvm-c/Analysis.h +++ b/include/llvm-c/Analysis.h @@ -34,13 +34,11 @@ typedef enum { /* Verifies that a module is valid, taking the specified action if not. - Optionally returns a human-readable description of any invalid constructs. */ + Optionally returns a human-readable description of any invalid constructs. + OutMessage must be disposed with LLVMDisposeMessage. */ int LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action, char **OutMessage); -/* Disposes of the message allocated by the verifier, if any. */ -void LLVMDisposeVerifierMessage(char *Message); - /* Verifies that a single function is valid, taking the specified action. Useful for debugging. */ int LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action); -- cgit v1.2.3