25587182f3 
								
							 
						 
						
							
							
								
								Enable 'predsimplify' optimization.  
							
							... 
							
							
							
							llvm-svn: 30589 
							
						 
						
							2006-09-24 00:08:16 +00:00  
				
					
						
							
							
								 
						
							
								70b9f5bd1e 
								
							 
						 
						
							
							
								
								Move ipsccp pass earlier to clean up obvious bogosities  
							
							... 
							
							
							
							llvm-svn: 30232 
							
						 
						
							2006-09-09 21:30:13 +00:00  
				
					
						
							
							
								 
						
							
								51edba15c6 
								
							 
						 
						
							
							
								
								For PR797:  
							
							... 
							
							
							
							Remove exception throwing from Path::getDirectoryContents and its users.
llvm-svn: 29841 
							
						 
						
							2006-08-23 06:56:27 +00:00  
				
					
						
							
							
								 
						
							
								944645af44 
								
							 
						 
						
							
							
								
								For PR797:  
							
							... 
							
							
							
							Adjust usage of the ExecuteAndWait function to use the last argument which
is the ErrMsg string. This is necessitated because this function no longer
throws exceptions on error.
llvm-svn: 29791 
							
						 
						
							2006-08-21 06:04:45 +00:00  
				
					
						
							
							
								 
						
							
								32ffbc316a 
								
							 
						 
						
							
							
								
								Use Path::getFileStatus to get status-related info.  
							
							... 
							
							
							
							llvm-svn: 29444 
							
						 
						
							2006-08-01 18:04:01 +00:00  
				
					
						
							
							
								 
						
							
								16cf81306e 
								
							 
						 
						
							
							
								
								Don't pass target name into TargetData anymore, it is never used or needed.  
							
							... 
							
							
							
							llvm-svn: 28831 
							
						 
						
							2006-06-16 18:23:49 +00:00  
				
					
						
							
							
								 
						
							
								ab81de7514 
								
							 
						 
						
							
							
								
								Free memory allocated by copy_env.  
							
							... 
							
							
							
							llvm-svn: 28299 
							
						 
						
							2006-05-14 19:17:28 +00:00  
				
					
						
							
							
								 
						
							
								f984b68181 
								
							 
						 
						
							
							
								
								Implement PR679:  
							
							... 
							
							
							
							* Changed the -rpath option from cl::opt to cl::list
* Changed the interface to GenerateNative to take a std::vector<std::string>
  instead of just a std::string
* Changed GenerateNative to generate multiple -Wl,-rpath, options to be
  passed to gcc.
llvm-svn: 24930 
							
						 
						
							2005-12-22 01:50:56 +00:00  
				
					
						
							
							
								 
						
							
								b3140c3e8a 
								
							 
						 
						
							
							
								
								add a hack that fixes:  
							
							... 
							
							
							
							llvm-gcc main.c -Wl,-native -o a.out -g
This is important because it used by many configure scripts.
John, please pull this onto the 1.6 branch.
llvm-svn: 24163 
							
						 
						
							2005-11-03 07:17:51 +00:00  
				
					
						
							
							
								 
						
							
								727671a3dc 
								
							 
						 
						
							
							
								
								Fix PR637  
							
							... 
							
							
							
							llvm-svn: 23784 
							
						 
						
							2005-10-18 06:29:43 +00:00  
				
					
						
							
							
								 
						
							
								f20941116b 
								
							 
						 
						
							
							
								
								Speed up isBytecodeLPath from 20s to .01s in common cases.  This makes -native  
							
							... 
							
							
							
							not completely painful to use.  Once we decide a directory has a bytecode
library, we know it this function returns true, no need to scan entire directories.
llvm-svn: 23405 
							
						 
						
							2005-09-23 06:11:24 +00:00  
				
					
						
							
							
								 
						
							
								9b9b510084 
								
							 
						 
						
							
							
								
								1. Do not use .c_str() to keep a persistent handle on a temporary string.  
							
							... 
							
							
							
							2. Concatenate -lfoo and -L/bar options into a single option instead of
   passing "-L /bar" (for example) which doesn't work on Darwin.
3. Send -v output to stderr instead of stdout
llvm-svn: 23404 
							
						 
						
							2005-09-23 06:05:46 +00:00  
				
					
						
							
							
								 
						
							
								ab08df9699 
								
							 
						 
						
							
							
								
								Pass -export-dynamic to gcc when compiling with -native and the link is  
							
							... 
							
							
							
							performed with -export-dynamic (aka. -disable-internalize).
Patch by Nicholas Riley!
llvm-svn: 22601 
							
						 
						
							2005-08-02 22:07:38 +00:00  
				
					
						
							
							
								 
						
							
								03f6f7a537 
								
							 
						 
						
							
							
								
								Make sure we don't error out if an invalid path is used, just simply  
							
							... 
							
							
							
							exit from isBytecodeLPath with "false".
llvm-svn: 22360 
							
						 
						
							2005-07-08 16:48:52 +00:00  
				
					
						
							
							
								 
						
							
								c9c0473fa5 
								
							 
						 
						
							
							
								
								For PR495:  
							
							... 
							
							
							
							Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:
appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set
Changes pass Dejagnu and llvm-test/SingleSource tests.
llvm-svn: 22349 
							
						 
						
							2005-07-07 23:21:43 +00:00  
				
					
						
							
							
								 
						
							
								650ba8eb56 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							... 
							
							
							
							llvm-svn: 21428 
							
						 
						
							2005-04-22 00:00:37 +00:00  
				
					
						
							
							
								 
						
							
								17092bd0a4 
								
							 
						 
						
							
							
								
								Eliminate trailing spaces at end-of-line  
							
							... 
							
							
							
							llvm-svn: 21372 
							
						 
						
							2005-04-20 04:08:35 +00:00  
				
					
						
							
							
								 
						
							
								64a8c3ed91 
								
							 
						 
						
							
							
								
								* Print commands as we execute them with `-v'  
							
							... 
							
							
							
							* Add option `-save-temps'
Patch contributed by Markus Oberhumer.
llvm-svn: 21367 
							
						 
						
							2005-04-20 03:22:18 +00:00  
				
					
						
							
							
								 
						
							
								672fe7267b 
								
							 
						 
						
							
							
								
								The first argument to ExecuteAndWait should be the program name, but pointed  
							
							... 
							
							
							
							out by Markus F.X.J. Oberhumer.
llvm-svn: 21211 
							
						 
						
							2005-04-10 20:59:38 +00:00  
				
					
						
							
							
								 
						
							
								9947c42037 
								
							 
						 
						
							
							
								
								Changes to enable creation of native executables directly from gccld and to  
							
							... 
							
							
							
							ensure that -L paths don't contain both bytecode and native libraries.
This patch contributed by Adam Treat.
llvm-svn: 20370 
							
						 
						
							2005-02-28 08:45:35 +00:00  
				
					
						
							
							
								 
						
							
								61a31c9fe2 
								
							 
						 
						
							
							
								
								Make sure to null terminate argument lists!  
							
							... 
							
							
							
							llvm-svn: 20166 
							
						 
						
							2005-02-13 23:02:34 +00:00  
				
					
						
							
							
								 
						
							
								766ad0b77f 
								
							 
						 
						
							
							
								
								For PR351:  
							
							... 
							
							
							
							* Support changes in sys::Program::ExecuteAndWait interface
llvm-svn: 19044 
							
						 
						
							2004-12-19 18:00:56 +00:00  
				
					
						
							
							
								 
						
							
								eedafda7bb 
								
							 
						 
						
							
							
								
								For PR351:  
							
							... 
							
							
							
							* Change ExecWait calls to sys::Program::ExecuteAndWait
* Convert to use sys::Path where it makes sense
llvm-svn: 18929 
							
						 
						
							2004-12-14 04:20:08 +00:00  
				
					
						
							
							
								 
						
							
								dea2bde08f 
								
							 
						 
						
							
							
								
								This pass is no longer needed.  
							
							... 
							
							
							
							llvm-svn: 18782 
							
						 
						
							2004-12-10 22:30:32 +00:00  
				
					
						
							
							
								 
						
							
								4a03a2d433 
								
							 
						 
						
							
							
								
								Turn on ipsccp by default instead of simple IPCP  
							
							... 
							
							
							
							llvm-svn: 18753 
							
						 
						
							2004-12-10 08:03:43 +00:00  
				
					
						
							
							
								 
						
							
								4913b65616 
								
							 
						 
						
							
							
								
								Recognize  --strip-all as a synonym for -s.  
							
							... 
							
							
							
							Add -S and --strip-debug option support.
llvm-svn: 18441 
							
						 
						
							2004-12-02 21:26:10 +00:00  
				
					
						
							
							
								 
						
							
								7a3767521d 
								
							 
						 
						
							
							
								
								-disable-opt is not -O0, it's okay for it to disable internalize.  
							
							... 
							
							
							
							llvm-svn: 17911 
							
						 
						
							2004-11-17 16:41:19 +00:00  
				
					
						
							
							
								 
						
							
								05fe0244e1 
								
							 
						 
						
							
							
								
								Even with -disable-opt we should still internalize and strip if requested.  
							
							... 
							
							
							
							llvm-svn: 17903 
							
						 
						
							2004-11-16 18:59:20 +00:00  
				
					
						
							
							
								 
						
							
								16c3bb3198 
								
							 
						 
						
							
							
								
								Linker.h has a new home.  
							
							... 
							
							
							
							llvm-svn: 17801 
							
						 
						
							2004-11-14 23:00:08 +00:00  
				
					
						
							
							
								 
						
							
								155cfd237b 
								
							 
						 
						
							
							
								
								Don't miss global optimizations because we run before the inliner  
							
							... 
							
							
							
							llvm-svn: 16913 
							
						 
						
							2004-10-11 04:47:18 +00:00  
				
					
						
							
							
								 
						
							
								fa3cfd3955 
								
							 
						 
						
							
							
								
								Rename pass  
							
							... 
							
							
							
							llvm-svn: 16801 
							
						 
						
							2004-10-07 04:12:02 +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  
				
					
						
							
							
								 
						
							
								ac44389c83 
								
							 
						 
						
							
							
								
								This pass has proven its metal, remove -disable option.  
							
							... 
							
							
							
							llvm-svn: 15411 
							
						 
						
							2004-08-02 10:10:08 +00:00  
				
					
						
							
							
								 
						
							
								aa5b25eae6 
								
							 
						 
						
							
							
								
								Run DSE at link-time, and turn on an IP alias analysis by default in gccld!  
							
							... 
							
							
							
							The -disable-globalsmodref is temporary and will be removed eventually.
llvm-svn: 15268 
							
						 
						
							2004-07-27 08:13:15 +00:00  
				
					
						
							
							
								 
						
							
								28ee8f0f30 
								
							 
						 
						
							
							
								
								Linker.h moved to include/llvm/Support  
							
							... 
							
							
							
							llvm-svn: 14351 
							
						 
						
							2004-06-23 17:33:09 +00:00  
				
					
						
							
							
								 
						
							
								85b943dd06 
								
							 
						 
						
							
							
								
								Move some functions out of gccld.cpp to GenerateCode.cpp.  This allows us  
							
							... 
							
							
							
							to reduce the inter-file interface in the gccld tool and gets some
uninteresting code out of gccld.cpp.
llvm-svn: 13942 
							
						 
						
							2004-06-02 00:22:24 +00:00  
				
					
						
							
							
								 
						
							
								a2b279e89c 
								
							 
						 
						
							
							
								
								Add a couple more IPO's  
							
							... 
							
							
							
							llvm-svn: 12863 
							
						 
						
							2004-04-12 05:38:15 +00:00  
				
					
						
							
							
								 
						
							
								d61b13c6e2 
								
							 
						 
						
							
							
								
								Disable strict alias analysis in the backend c compiler, as the code we  
							
							... 
							
							
							
							generate is not TBAA safe.
llvm-svn: 12774 
							
						 
						
							2004-04-08 15:18:59 +00:00  
				
					
						
							
							
								 
						
							
								a182f5bf48 
								
							 
						 
						
							
							
								
								Revert previous patch, I'm a moron :)  
							
							... 
							
							
							
							llvm-svn: 12773 
							
						 
						
							2004-04-08 15:18:03 +00:00  
				
					
						
							
							
								 
						
							
								177fe8d82f 
								
							 
						 
						
							
							
								
								Right, we break strict aliasing requirements.  Make sure to disable strict  
							
							... 
							
							
							
							aliasing in the C compiler.
llvm-svn: 12772 
							
						 
						
							2004-04-08 15:14:43 +00:00  
				
					
						
							
							
								 
						
							
								e216fc01b7 
								
							 
						 
						
							
							
								
								Minor cleanups  
							
							... 
							
							
							
							llvm-svn: 12700 
							
						 
						
							2004-04-06 16:54:04 +00:00  
				
					
						
							
							
								 
						
							
								ad733e733e 
								
							 
						 
						
							
							
								
								Add a new gccld -native-cbe option which causes gccld to generate native code  
							
							... 
							
							
							
							for the application with the C backend instead of the native LLVM code generator
llvm-svn: 12698 
							
						 
						
							2004-04-06 16:43:13 +00:00  
				
					
						
							
							
								 
						
							
								ac2e2d3bdd 
								
							 
						 
						
							
							
								
								Run the new pass in gccld now that it passes all tests  
							
							... 
							
							
							
							llvm-svn: 12196 
							
						 
						
							2004-03-07 22:12:40 +00:00  
				
					
						
							
							
								 
						
							
								73687be9d7 
								
							 
						 
						
							
							
								
								We have this snazzy link-time optimizer.  How about we start using it?  This  
							
							... 
							
							
							
							removes some cruft from 255.vortex, cleaning up after DAE and IPCP, which
do horrible, beautiful, things to vortex.
llvm-svn: 11861 
							
						 
						
							2004-02-26 03:34:30 +00:00  
				
					
						
							
							
								 
						
							
								b66a35ef9c 
								
							 
						 
						
							
							
								
								Add a new pass, run internalize first  
							
							... 
							
							
							
							llvm-svn: 11839 
							
						 
						
							2004-02-25 21:35:13 +00:00  
				
					
						
							
							
								 
						
							
								36eebb51f2 
								
							 
						 
						
							
							
								
								Fixed PR#197.  The libcrtend library is removed from the library linking list  
							
							... 
							
							
							
							when creating native executables.
llvm-svn: 10979 
							
						 
						
							2004-01-26 23:51:10 +00:00  
				
					
						
							
							
								 
						
							
								298d2f090f 
								
							 
						 
						
							
							
								
								Make sure to verify the result before writing out the bytecode file.  Not doing  
							
							... 
							
							
							
							so can cause obscure errors downstream.
llvm-svn: 10840 
							
						 
						
							2004-01-14 03:39:46 +00:00  
				
					
						
							
							
								 
						
							
								8abd7dca76 
								
							 
						 
						
							
							
								
								The function resolving pass must be run, even if -disable-opt is specified  
							
							... 
							
							
							
							llvm-svn: 10250 
							
						 
						
							2003-11-28 09:44:03 +00:00  
				
					
						
							
							
								 
						
							
								aa525937c7 
								
							 
						 
						
							
							
								
								For consistency, removed space between function name and left paren in function  
							
							... 
							
							
							
							call, i.e. [ addPass (...) ]  =>  [ addPass(...) ]
llvm-svn: 10105 
							
						 
						
							2003-11-20 06:26:15 +00:00  
				
					
						
							
							
								 
						
							
								eb3de8f39a 
								
							 
						 
						
							
							
								
								Add a -verify option to verify the results of gccld passes.  
							
							... 
							
							
							
							Add a -disable-opt option to turn off gccld optimization passes.
llvm-svn: 10040 
							
						 
						
							2003-11-16 23:07:28 +00:00