5abf51bde0 
								
							 
						 
						
							
							
								
								Fix OCaml bindings crash, PR8847.  
							
							... 
							
							
							
							See http://caml.inria.fr/mantis/view.php?id=4166 
If we call only external functions from a module, then its 'let _' bindings
don't get executed, which means that the exceptions don't get registered for use
in the C code.
This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and
cause a segmentation fault.
The workaround is to declare all 'external' functions as 'val' in these .mli
files.
Also added a separate testcase (the testcase must call only external functions
for the bug to occur).
llvm-svn: 122497 
							
						 
						
							2010-12-23 15:49:26 +00:00  
				
					
						
							
							
								 
						
							
								3e64c26b2f 
								
							 
						 
						
							
							
								
								Rename some ocaml functions.  
							
							... 
							
							
							
							llvm-svn: 97684 
							
						 
						
							2010-03-03 23:51:30 +00:00  
				
					
						
							
							
								 
						
							
								7dd2615503 
								
							 
						 
						
							
							
								
								Expose the external functions for ocaml's execution engine as an optimization.  
							
							... 
							
							
							
							llvm-svn: 97683 
							
						 
						
							2010-03-03 23:51:28 +00:00  
				
					
						
							
							
								 
						
							
								94feaafe1e 
								
							 
						 
						
							
							
								
								Expose the optimization level for the jit in ocaml.  
							
							... 
							
							
							
							llvm-svn: 97610 
							
						 
						
							2010-03-02 23:59:03 +00:00  
				
					
						
							
							
								 
						
							
								98b05d67e9 
								
							 
						 
						
							
							
								
								Remove module providers from ocaml.  
							
							... 
							
							
							
							llvm-svn: 97609 
							
						 
						
							2010-03-02 23:59:00 +00:00  
				
					
						
							
							
								 
						
							
								b4e19177cb 
								
							 
						 
						
							
							
								
								Expose initializing the native target for the execution engine.  
							
							... 
							
							
							
							llvm-svn: 81800 
							
						 
						
							2009-09-14 21:54:32 +00:00  
				
					
						
							
							
								 
						
							
								fc8a2d5a83 
								
							 
						 
						
							
							
								
								Add EngineBuilder to ExecutionEngine in favor of the five optional argument EE::create().  
							
							... 
							
							
							
							Also a test commit.
llvm-svn: 76276 
							
						 
						
							2009-07-18 00:42:18 +00:00  
				
					
						
							
							
								 
						
							
								5225cd66cf 
								
							 
						 
						
							
							
								
								Fix the LLVMCreateJITCompiler C binding.  
							
							... 
							
							
							
							Evan broke it in r54523 by adding a parameter in the implementation without
updating the header correspondingly.
llvm-svn: 54555 
							
						 
						
							2008-08-08 20:49:28 +00:00  
				
					
						
							
							
								 
						
							
								8ac07c2834 
								
							 
						 
						
							
							
								
								Expose ExecutionEngine::getTargetData() to c and ocaml bindings.  
							
							... 
							
							
							
							llvm-svn: 48851 
							
						 
						
							2008-03-27 00:27:14 +00:00  
				
					
						
							
							
								 
						
							
								95f4b77b0d 
								
							 
						 
						
							
							
								
								This patch cleans up the OCaml bindings so that they format nicely with  
							
							... 
							
							
							
							ocamldoc. It does not yet hook into the build system, though.
Patch by Erick Tryzelaar!
llvm-svn: 48095 
							
						 
						
							2008-03-09 07:17:38 +00:00  
				
					
						
							
							
								 
						
							
								6787a45a65 
								
							 
						 
						
							
							
								
								remove attribution from a variety of miscellaneous files.  
							
							... 
							
							
							
							llvm-svn: 45425 
							
						 
						
							2007-12-29 22:59:10 +00:00  
				
					
						
							
							
								 
						
							
								2a8cd89d03 
								
							 
						 
						
							
							
								
								C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).  
							
							... 
							
							
							
							llvm-svn: 45335 
							
						 
						
							2007-12-23 16:59:28 +00:00