e14460ba37 
								
							 
						 
						
							
							
								
								Trailing whitespace.  
							
							... 
							
							
							
							llvm-svn: 128086 
							
						 
						
							2011-03-22 15:21:58 +00:00  
				
					
						
							
							
								 
						
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
				
					
						
							
							
								 
						
							
								fe933eb8f6 
								
							 
						 
						
							
							
								
								Fix a comment.  
							
							... 
							
							
							
							llvm-svn: 112535 
							
						 
						
							2010-08-30 21:54:03 +00:00  
				
					
						
							
							
								 
						
							
								9c0e59de64 
								
							 
						 
						
							
							
								
								EE/JIT: Do not invoke parent's ctors/dtors from main()! (PR3897)  
							
							... 
							
							
							
							On Mingw and Cygwin, the symbol __main is resolved to
callee's(eg. tools/lli) one, to invoke wrong duplicated ctors
(and register wrong callee's dtors with atexit(3)).
We expect, by callee, ExecutionEngine::runStaticConstructorsDestructors()
is called before ExecutionEngine::runFunctionAsMain() is called.
llvm-svn: 112474 
							
						 
						
							2010-08-30 14:00:29 +00:00  
				
					
						
							
							
								 
						
							
								2104b8d36e 
								
							 
						 
						
							
							
								
								rename llvm::llvm_report_error -> llvm::report_fatal_error  
							
							... 
							
							
							
							llvm-svn: 100709 
							
						 
						
							2010-04-07 22:58:41 +00:00  
				
					
						
							
							
								 
						
							
								471ba48cb9 
								
							 
						 
						
							
							
								
								remove some uses of llvm/Support/Streams.h  
							
							... 
							
							
							
							llvm-svn: 79842 
							
						 
						
							2009-08-23 08:43:55 +00:00  
				
					
						
							
							
								 
						
							
								1432ef864e 
								
							 
						 
						
							
							
								
								This void is implicit in C++.  
							
							... 
							
							
							
							llvm-svn: 78848 
							
						 
						
							2009-08-12 22:10:57 +00:00  
				
					
						
							
							
								 
						
							
								a6d0afcb74 
								
							 
						 
						
							
							
								
								Fix a bunch of namespace pollution.  
							
							... 
							
							
							
							llvm-svn: 78363 
							
						 
						
							2009-08-07 01:32:21 +00:00  
				
					
						
							
							
								 
						
							
								c28b306423 
								
							 
						 
						
							
							
								
								llvm_report_error already prints "LLVM ERROR:". So stop reporting errors like "LLVM ERROR: llvm: error:" or "LLVM ERROR: ERROR:".  
							
							... 
							
							
							
							llvm-svn: 77971 
							
						 
						
							2009-08-03 13:33:33 +00:00  
				
					
						
							
							
								 
						
							
								ccb29cd290 
								
							 
						 
						
							
							
								
								Convert more assert(0)+abort() -> LLVM_UNREACHABLE,  
							
							... 
							
							
							
							and abort()/exit() -> llvm_report_error().
llvm-svn: 75363 
							
						 
						
							2009-07-11 13:10:19 +00:00  
				
					
						
							
							
								 
						
							
								a602caf369 
								
							 
						 
						
							
							
								
								stat64/open64/lseek64 for the interpreter  
							
							... 
							
							
							
							llvm-svn: 72329 
							
						 
						
							2009-05-23 16:23:59 +00:00  
				
					
						
							
							
								 
						
							
								70b42590b0 
								
							 
						 
						
							
							
								
								Fix misplaced right parentheses.  
							
							... 
							
							
							
							llvm-svn: 61699 
							
						 
						
							2009-01-05 17:17:04 +00:00  
				
					
						
							
							
								 
						
							
								d32ec016cc 
								
							 
						 
						
							
							
								
								Handle weak_extern in the JIT. This fixes  
							
							... 
							
							
							
							SingleSource/UnitTests/2007-04-25-weak.c in JIT mode. The test
now passes on systems which are able to produce a correct
reference output to compare with.
llvm-svn: 61674 
							
						 
						
							2009-01-05 05:32:42 +00:00  
				
					
						
							
							
								 
						
							
								86d4f3a2a9 
								
							 
						 
						
							
							
								
								Add a new flag that disables symbol lookup with dlsym when set.  This allows  
							
							... 
							
							
							
							a JIT client to completely control symbol lookup with the LazyFunctionCreator
interface.
llvm-svn: 52335 
							
						 
						
							2008-06-16 17:44:14 +00:00  
				
					
						
							
							
								 
						
							
								643b3a0581 
								
							 
						 
						
							
							
								
								Add #includes to make some dependencies explicit.  
							
							... 
							
							
							
							llvm-svn: 51496 
							
						 
						
							2008-05-23 20:40:06 +00:00  
				
					
						
							
							
								 
						
							
								84cea329d5 
								
							 
						 
						
							
							
								
								Remove symbols that don't exist, remove tabs, fix comment typo  
							
							... 
							
							
							
							llvm-svn: 45553 
							
						 
						
							2008-01-03 22:15:32 +00:00  
				
					
						
							
							
								 
						
							
								705dc51f2c 
								
							 
						 
						
							
							
								
								Fix PR1873, a problem finding stat-related symbols on linux, due to  
							
							... 
							
							
							
							"libc_nonshared.a". Patch by Edwin Török!
llvm-svn: 45532 
							
						 
						
							2008-01-03 07:10:51 +00:00  
				
					
						
							
							
								 
						
							
								f3ebc3f3d2 
								
							 
						 
						
							
							
								
								Remove attribution from file headers, per discussion on llvmdev.  
							
							... 
							
							
							
							llvm-svn: 45418 
							
						 
						
							2007-12-29 20:36:04 +00:00  
				
					
						
							
							
								 
						
							
								749478a61b 
								
							 
						 
						
							
							
								
								for consistency, allow a fallthrough if the final check returns null.  
							
							... 
							
							
							
							llvm-svn: 44406 
							
						 
						
							2007-11-28 18:30:18 +00:00  
				
					
						
							
							
								 
						
							
								be5f3cb6f1 
								
							 
						 
						
							
							
								
								Make this actually work on systems that support ppc long double.  
							
							... 
							
							
							
							llvm-svn: 44374 
							
						 
						
							2007-11-27 20:45:25 +00:00  
				
					
						
							
							
								 
						
							
								fffd0ae2f1 
								
							 
						 
						
							
							
								
								Unbreak all of the darwin/ppc32 JIT failures having to do  
							
							... 
							
							
							
							with not being able to find printf.
llvm-svn: 44373 
							
						 
						
							2007-11-27 20:41:32 +00:00  
				
					
						
							
							
								 
						
							
								fd6f3257b8 
								
							 
						 
						
							
							
								
								add a mechanism for the JIT to invoke a function to lazily create functions as they are referenced.  
							
							... 
							
							
							
							llvm-svn: 43210 
							
						 
						
							2007-10-22 02:50:12 +00:00  
				
					
						
							
							
								 
						
							
								bf5e958ba0 
								
							 
						 
						
							
							
								
								llvm-gcc3 is dead, along with it __main.  
							
							... 
							
							
							
							llvm-svn: 43209 
							
						 
						
							2007-10-22 02:39:47 +00:00  
				
					
						
							
							
								 
						
							
								22e978a736 
								
							 
						 
						
							
							
								
								Removing even more <iostream> includes.  
							
							... 
							
							
							
							llvm-svn: 32320 
							
						 
						
							2006-12-07 20:04:42 +00:00  
				
					
						
							
							
								 
						
							
								e3861501e6 
								
							 
						 
						
							
							
								
								Fix handling of asm specifiers for external globals. This unbreaks many programs  
							
							... 
							
							
							
							on leopard in the jit.
llvm-svn: 29391 
							
						 
						
							2006-07-28 21:11:31 +00:00  
				
					
						
							
							
								 
						
							
								2c3e9bab6f 
								
							 
						 
						
							
							
								
								Fix warning on linux  
							
							... 
							
							
							
							llvm-svn: 29314 
							
						 
						
							2006-07-27 00:04:14 +00:00  
				
					
						
							
							
								 
						
							
								dcd73534df 
								
							 
						 
						
							
							
								
								Silence some -pedantic warnings.  
							
							... 
							
							
							
							llvm-svn: 28629 
							
						 
						
							2006-06-01 17:12:14 +00:00  
				
					
						
							
							
								 
						
							
								c67a060a51 
								
							 
						 
						
							
							
								
								Convert llvm.cs.uiuc.edu -> llvm.org  
							
							... 
							
							
							
							llvm-svn: 26748 
							
						 
						
							2006-03-14 05:54:52 +00:00  
				
					
						
							
							
								 
						
							
								10468d8a3c 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							... 
							
							
							
							llvm-svn: 21422 
							
						 
						
							2005-04-21 22:55:34 +00:00  
				
					
						
							
							
								 
						
							
								cbd791c5e7 
								
							 
						 
						
							
							
								
								Be double sure about including sys/stat.h by wrapping the inclusion in  
							
							... 
							
							
							
							an "#if defined(HAVE_SYS_STAT_H)".
llvm-svn: 19069 
							
						 
						
							2004-12-20 06:34:02 +00:00  
				
					
						
							
							
								 
						
							
								181cf4ce17 
								
							 
						 
						
							
							
								
								Move the #include of sys/stat.h inside the linux "hack" for the stat  
							
							... 
							
							
							
							family of functions so it gets noticed if we ever remove this.
llvm-svn: 19022 
							
						 
						
							2004-12-17 19:09:16 +00:00  
				
					
						
							
							
								 
						
							
								0575a63578 
								
							 
						 
						
							
							
								
								Only #include sys/stat.h if we're on linux where we have the PR274 problem.  
							
							... 
							
							
							
							llvm-svn: 19020 
							
						 
						
							2004-12-17 18:56:29 +00:00  
				
					
						
							
							
								 
						
							
								87a756f09f 
								
							 
						 
						
							
							
								
								Remove darwin specific majik  
							
							... 
							
							
							
							llvm-svn: 18467 
							
						 
						
							2004-12-03 23:02:55 +00:00  
				
					
						
							
							
								 
						
							
								5a4dc8ca5a 
								
							 
						 
						
							
							
								
								Do not look here for elegance.  
							
							... 
							
							
							
							This fixes the ugly darwin "cannot find symbols starting with __" issue.
Thanks for Owen/resistor for testing this out for me.
llvm-svn: 18454 
							
						 
						
							2004-12-03 07:16:51 +00:00  
				
					
						
							
							
								 
						
							
								70e37278cb 
								
							 
						 
						
							
							
								
								Use System/DynamicLibrary instead of Support/DynamicLinker  
							
							... 
							
							
							
							llvm-svn: 18357 
							
						 
						
							2004-11-29 14:11:29 +00:00  
				
					
						
							
							
								 
						
							
								7c16caa336 
								
							 
						 
						
							
							
								
								Changes For Bug 352  
							
							... 
							
							
							
							Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.
llvm-svn: 16137 
							
						 
						
							2004-09-01 22:55:40 +00:00  
				
					
						
							
							
								 
						
							
								a32ca86c21 
								
							 
						 
						
							
							
								
								Implement PR315: abort, don't warn, when missing external functions encountered  
							
							... 
							
							
							
							This fixes some critical problems building libstdc++ on cygwin.
llvm-svn: 13934 
							
						 
						
							2004-06-01 21:49:00 +00:00  
				
					
						
							
							
								 
						
							
								1eec234f91 
								
							 
						 
						
							
							
								
								My fix for PR274 broke the build on Darwin/PPC.  As I'm fairly certain this  
							
							... 
							
							
							
							bug only affects Linux systems that use GLIBC, I'm going to put ifdefs around
the array.
llvm-svn: 12269 
							
						 
						
							2004-03-10 17:38:28 +00:00  
				
					
						
							
							
								 
						
							
								96e450b3b2 
								
							 
						 
						
							
							
								
								Address PR274 - '[JIT] Programs cannot resolve the fstat function'  
							
							... 
							
							
							
							by trying to get the compiler to generate an undefined reference for it
and related functions which live in libc_nonshared.a on Linux.
Linkers... sigh.
llvm-svn: 12256 
							
						 
						
							2004-03-09 05:22:10 +00:00  
				
					
						
							
							
								 
						
							
								385a90aa6d 
								
							 
						 
						
							
							
								
								No longer run atExit functions from run()  
							
							... 
							
							
							
							rename run to runFunction
Genericize the runFunction code a little bit, though it still stinks
llvm-svn: 10610 
							
						 
						
							2003-12-26 06:13:47 +00:00  
				
					
						
							
							
								 
						
							
								9bcae072d1 
								
							 
						 
						
							
							
								
								Cleanup the JIT as per PR176.  This renames the VM class to JIT, and merges the  
							
							... 
							
							
							
							VM.cpp and JIT.cpp files into JIT.cpp.  This also splits some nasty code out
into TargetSelect.cpp so that people hopefully won't notice it.  :)
llvm-svn: 10544 
							
						 
						
							2003-12-20 01:46:27 +00:00  
				
					
						
							
							
								 
						
							
								c0e1b071b9 
								
							 
						 
						
							
							
								
								Finegrainify namespacification  
							
							... 
							
							
							
							llvm-svn: 10318 
							
						 
						
							2003-12-08 08:06:28 +00:00  
				
					
						
							
							
								 
						
							
								960707c335 
								
							 
						 
						
							
							
								
								Put all LLVM code into the llvm namespace, as per bug 109.  
							
							... 
							
							
							
							llvm-svn: 9903 
							
						 
						
							2003-11-11 22:41:34 +00:00  
				
					
						
							
							
								 
						
							
								482202a601 
								
							 
						 
						
							
							
								
								Added LLVM project notice to the top of every C++ source file.  
							
							... 
							
							
							
							Header files will be on the way.
llvm-svn: 9298 
							
						 
						
							2003-10-20 19:43:21 +00:00  
				
					
						
							
							
								 
						
							
								e8bbcfc298 
								
							 
						 
						
							
							
								
								Change to use GetAddressOfSymbol instead of dlsym.  
							
							... 
							
							
							
							llvm-svn: 9012 
							
						 
						
							2003-10-10 17:02:42 +00:00  
				
					
						
							
							
								 
						
							
								a7669038fc 
								
							 
						 
						
							
							
								
								Make CreateArgv part of lli rather than part of ExecutionEngine.  
							
							... 
							
							
							
							Switch Interpreter and JIT's "run" methods to take a Function and a vector of
 GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
 into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
 isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
 more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".
llvm-svn: 8366 
							
						 
						
							2003-09-05 18:42:01 +00:00  
				
					
						
							
							
								 
						
							
								ee79899ce5 
								
							 
						 
						
							
							
								
								Clean up code dealing with RTLD_SELF differences on Sparc and X86.  
							
							... 
							
							
							
							llvm-svn: 7362 
							
						 
						
							2003-07-28 19:07:30 +00:00  
				
					
						
							
							
								 
						
							
								3ef61afb76 
								
							 
						 
						
							
							
								
								Merged in autoconf branch.  This provides configuration via the autoconf  
							
							... 
							
							
							
							system.
llvm-svn: 7014 
							
						 
						
							2003-06-30 21:59:07 +00:00  
				
					
						
							
							
								 
						
							
								905496e94f 
								
							 
						 
						
							
							
								
								Sparc's dlsym() requires the special operand RTLD_SELF to find a symbol in the  
							
							... 
							
							
							
							currently-running process.
llvm-svn: 6592 
							
						 
						
							2003-06-04 01:57:22 +00:00  
				
					
						
							
							
								 
						
							
								2537ca318a 
								
							 
						 
						
							
							
								
								Add support for atexit handlers to the JIT, fixing 2003-05-14-AtExit.c  
							
							... 
							
							
							
							llvm-svn: 6193 
							
						 
						
							2003-05-14 13:53:40 +00:00