80bb693109 
								
							 
						 
						
							
							
								
								Implement and document prefix options with arbitrary values including an  
							
							... 
							
							
							
							= sign. This needed to support -DNAME=value options as pass-through in
llvmc.
llvm-svn: 18203 
							
						 
						
							2004-11-24 06:13:42 +00:00  
				
					
						
							
							
								 
						
							
								d27b014459 
								
							 
						 
						
							
							
								
								Fixed assertion from triggering. We need to check if the commandline map is empty before checking if an arg exists.  
							
							... 
							
							
							
							llvm-svn: 18057 
							
						 
						
							2004-11-20 23:35:20 +00:00  
				
					
						
							
							
								 
						
							
								37bcd99622 
								
							 
						 
						
							
							
								
								Patches to avoid "leaking" memory on process exit.  Patch contributed by  
							
							... 
							
							
							
							Morten Ofstad!
llvm-svn: 17998 
							
						 
						
							2004-11-19 17:08:15 +00:00  
				
					
						
							
							
								 
						
							
								f0173e0c48 
								
							 
						 
						
							
							
								
								Add a comment to some code that at first glance just doesn't look right.  
							
							... 
							
							
							
							llvm-svn: 17886 
							
						 
						
							2004-11-16 06:50:36 +00:00  
				
					
						
							
							
								 
						
							
								5e5547045b 
								
							 
						 
						
							
							
								
								Per code review:  
							
							... 
							
							
							
							*Implement/Document the cl::extrahelp feature instead of the MoreHelp ptr.
llvm-svn: 17871 
							
						 
						
							2004-11-16 06:11:52 +00:00  
				
					
						
							
							
								 
						
							
								1f4ab8b449 
								
							 
						 
						
							
							
								
								Implement the MoreHelp utility that calls a function to printmore help information if the MoreHelp global is not null.  
							
							... 
							
							
							
							llvm-svn: 17774 
							
						 
						
							2004-11-14 22:04:00 +00:00  
				
					
						
							
							
								 
						
							
								8a75d2e73b 
								
							 
						 
						
							
							
								
								Replace uses of llvm.org with llvm.cs.uiuc.edu  
							
							... 
							
							
							
							llvm-svn: 17549 
							
						 
						
							2004-11-07 00:58:38 +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  
				
					
						
							
							
								 
						
							
								9501b9b82b 
								
							 
						 
						
							
							
								
								Make CommandLine prefix error output with the name of the program.  
							
							... 
							
							
							
							llvm-svn: 16129 
							
						 
						
							2004-09-01 04:41:28 +00:00  
				
					
						
							
							
								 
						
							
								2027a6ffdc 
								
							 
						 
						
							
							
								
								Allow any cl::opt to use the method getPosition() to retrieve the option's  
							
							... 
							
							
							
							absolute position on the command line. Similarly allow any cl::list to
use the method getPosition(n) to retrieve the absolute position of the nth
option in the list. This provides support for two things: (a) options like
-l that are actually positional and their order of occurrence matters when
they are intermixed with positional arguments like "a.o"; and (b) options
like -x LANG which affect only the positional arguments that come after
the option. In both cases, knowing the absolute position of a given option
helps.
llvm-svn: 15725 
							
						 
						
							2004-08-13 19:47:30 +00:00  
				
					
						
							
							
								 
						
							
								ff6cc1233e 
								
							 
						 
						
							
							
								
								Add a --version option for every tool that prints out:  
							
							... 
							
							
							
							Low Level Virtual Machine ($PACKAGE_NAME) $PACKAGE_VERSION
llvm-svn: 15454 
							
						 
						
							2004-08-04 00:36:06 +00:00  
				
					
						
							
							
								 
						
							
								13e5831bd0 
								
							 
						 
						
							
							
								
								Add a workaround for a GCC 3.3.2 bug  
							
							... 
							
							
							
							llvm-svn: 14976 
							
						 
						
							2004-07-18 21:56:20 +00:00  
				
					
						
							
							
								 
						
							
								d3ecc61840 
								
							 
						 
						
							
							
								
								Fix compilation on internix  
							
							... 
							
							
							
							llvm-svn: 14588 
							
						 
						
							2004-07-03 01:21:05 +00:00  
				
					
						
							
							
								 
						
							
								a60f355c87 
								
							 
						 
						
							
							
								
								Implement the new cl::PositionalEatsArgs flag, refactor code a bit  
							
							... 
							
							
							
							llvm-svn: 13388 
							
						 
						
							2004-05-06 22:04:31 +00:00  
				
					
						
							
							
								 
						
							
								33cb4260a5 
								
							 
						 
						
							
							
								
								Hide variable from other functions.  
							
							... 
							
							
							
							llvm-svn: 12118 
							
						 
						
							2004-03-04 17:50:44 +00:00  
				
					
						
							
							
								 
						
							
								c9499b6a20 
								
							 
						 
						
							
							
								
								Finegrainify namespacification  
							
							... 
							
							
							
							llvm-svn: 10464 
							
						 
						
							2003-12-14 21:35:53 +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  
				
					
						
							
							
								 
						
							
								e5e53229fc 
								
							 
						 
						
							
							
								
								Change to use strtoul instead of strtoll.  
							
							... 
							
							
							
							llvm-svn: 9010 
							
						 
						
							2003-10-10 17:01:36 +00:00  
				
					
						
							
							
								 
						
							
								6d069fcd49 
								
							 
						 
						
							
							
								
								Add missing apostrophe. It's been bugging me for years.  
							
							... 
							
							
							
							No really, years.
llvm-svn: 8566 
							
						 
						
							2003-09-16 18:00:35 +00:00  
				
					
						
							
							
								 
						
							
								c08758a5b3 
								
							 
						 
						
							
							
								
								Fixed spelling & grammar.  
							
							... 
							
							
							
							llvm-svn: 8559 
							
						 
						
							2003-09-16 15:31:46 +00:00  
				
					
						
							
							
								 
						
							
								497216dc00 
								
							 
						 
						
							
							
								
								lib/Support/CommandLine.cpp:  
							
							... 
							
							
							
							Many changes suggested by Chris. It's okay, I'll recover from the emotional
damage...maybe someday. :-)
Collapse ParseCStringVector into ParseStringVector.  Comment it.
Make it take a const input.
Use std::string::npos instead of -1 (what a mouthful!)
Make ParseEnvironmentOptions take const inputs.
Check its args at the very beginning.
Strdup all the contents of newArgv and free them all at the end.
include/Support/CommandLine.h:
Constify progName and envVar arguments to ParseEnvironmentOptions().
llvm-svn: 7905 
							
						 
						
							2003-08-15 21:05:57 +00:00  
				
					
						
							
							
								 
						
							
								ca782d9fe6 
								
							 
						 
						
							
							
								
								Add support for reading command line arguments from an environment variable.  
							
							... 
							
							
							
							llvm-svn: 7851 
							
						 
						
							2003-08-14 22:00:59 +00:00  
				
					
						
							
							
								 
						
							
								2da046f055 
								
							 
						 
						
							
							
								
								Add support for "named positional arguments"  
							
							... 
							
							
							
							llvm-svn: 7421 
							
						 
						
							2003-07-30 17:34:02 +00:00  
				
					
						
							
							
								 
						
							
								5258e59908 
								
							 
						 
						
							
							
								
								Fixed grammatical error.  
							
							... 
							
							
							
							llvm-svn: 7160 
							
						 
						
							2003-07-10 21:38:28 +00:00  
				
					
						
							
							
								 
						
							
								c18333ac0a 
								
							 
						 
						
							
							
								
								Lowercase versions of `occurrence' need to be spelled correctly, too.  
							
							... 
							
							
							
							llvm-svn: 7142 
							
						 
						
							2003-07-10 17:05:26 +00:00  
				
					
						
							
							
								 
						
							
								069e6b5be0 
								
							 
						 
						
							
							
								
								`Occurrence' has no `a' and the `r' is doubled.  
							
							... 
							
							
							
							llvm-svn: 7140 
							
						 
						
							2003-07-10 16:49:51 +00:00  
				
					
						
							
							
								 
						
							
								719c715639 
								
							 
						 
						
							
							
								
								Add support for 'unsigned' command line arguments  
							
							... 
							
							
							
							llvm-svn: 6928 
							
						 
						
							2003-06-28 15:47:20 +00:00  
				
					
						
							
							
								 
						
							
								929f27a3e6 
								
							 
						 
						
							
							
								
								Add new CommaSeparated option modifier  
							
							... 
							
							
							
							llvm-svn: 6294 
							
						 
						
							2003-05-22 20:26:17 +00:00  
				
					
						
							
							
								 
						
							
								a87170a36a 
								
							 
						 
						
							
							
								
								Destroy using declarations  
							
							... 
							
							
							
							llvm-svn: 6291 
							
						 
						
							2003-05-22 20:06:43 +00:00  
				
					
						
							
							
								 
						
							
								b4101b1373 
								
							 
						 
						
							
							
								
								Simplify writing custom parsers.  
							
							... 
							
							
							
							llvm-svn: 3256 
							
						 
						
							2002-08-07 18:36:37 +00:00  
				
					
						
							
							
								 
						
							
								551e12055d 
								
							 
						 
						
							
							
								
								Fix lli with no arguments  
							
							... 
							
							
							
							llvm-svn: 3226 
							
						 
						
							2002-08-02 21:51:29 +00:00  
				
					
						
							
							
								 
						
							
								150e46b679 
								
							 
						 
						
							
							
								
								Fix bug that was causing problems for lli  
							
							... 
							
							
							
							llvm-svn: 3176 
							
						 
						
							2002-07-31 16:29:43 +00:00  
				
					
						
							
							
								 
						
							
								1f790afad8 
								
							 
						 
						
							
							
								
								* Fix assertion failure caused by command line argument getting removed after  
							
							... 
							
							
							
							the map was freed.
* Cleanup code a bit
llvm-svn: 3121 
							
						 
						
							2002-07-29 20:58:42 +00:00  
				
					
						
							
							
								 
						
							
								e04258db39 
								
							 
						 
						
							
							
								
								Remove needless #include  
							
							... 
							
							
							
							llvm-svn: 3117 
							
						 
						
							2002-07-27 05:25:29 +00:00  
				
					
						
							
							
								 
						
							
								10073a9080 
								
							 
						 
						
							
							
								
								*** empty log message ***  
							
							... 
							
							
							
							llvm-svn: 3075 
							
						 
						
							2002-07-25 06:17:51 +00:00  
				
					
						
							
							
								 
						
							
								ca0e79eaa0 
								
							 
						 
						
							
							
								
								Fix a bug exposed by lli  
							
							... 
							
							
							
							llvm-svn: 3049 
							
						 
						
							2002-07-24 20:15:13 +00:00  
				
					
						
							
							
								 
						
							
								494c0b07de 
								
							 
						 
						
							
							
								
								*** empty log message ***  
							
							... 
							
							
							
							llvm-svn: 2999 
							
						 
						
							2002-07-23 17:15:12 +00:00  
				
					
						
							
							
								 
						
							
								d49ea88488 
								
							 
						 
						
							
							
								
								Minor bugfix, prevents error in LLI  
							
							... 
							
							
							
							llvm-svn: 2989 
							
						 
						
							2002-07-22 02:21:57 +00:00  
				
					
						
							
							
								 
						
							
								5df56c47fc 
								
							 
						 
						
							
							
								
								Checkin CommandLine 2.0  
							
							... 
							
							
							
							llvm-svn: 2982 
							
						 
						
							2002-07-22 02:07:59 +00:00  
				
					
						
							
							
								 
						
							
								8f7b500fff 
								
							 
						 
						
							
							
								
								Add ability to update existing variables with values read from the command line  
							
							... 
							
							
							
							to certain classes.  This is nice because it means that in header files we can
just declare a value, and still have that value be set based on a command-line
argument.  The difference is now that the #include of CommandLine.h does not
need to go into the header file as well.
llvm-svn: 2708 
							
						 
						
							2002-05-22 17:03:05 +00:00  
				
					
						
							
							
								 
						
							
								d5a847057b 
								
							 
						 
						
							
							
								
								Eliminate duplicate or unneccesary #include's  
							
							... 
							
							
							
							llvm-svn: 2397 
							
						 
						
							2002-04-29 17:42:12 +00:00  
				
					
						
							
							
								 
						
							
								2294b4ee27 
								
							 
						 
						
							
							
								
								64 bit clean now  
							
							... 
							
							
							
							llvm-svn: 1789 
							
						 
						
							2002-02-24 23:02:12 +00:00  
				
					
						
							
							
								 
						
							
								c2ef08ccf5 
								
							 
						 
						
							
							
								
								If an invalid alternative is listed for an argument, print the valid options  
							
							... 
							
							
							
							llvm-svn: 1604 
							
						 
						
							2002-01-31 00:42:56 +00:00  
				
					
						
							
							
								 
						
							
								7f74a56e24 
								
							 
						 
						
							
							
								
								Changes to build successfully with GCC 3.02  
							
							... 
							
							
							
							llvm-svn: 1503 
							
						 
						
							2002-01-20 22:54:45 +00:00  
				
					
						
							
							
								 
						
							
								5de2204fe8 
								
							 
						 
						
							
							
								
								Create a new #include "Support/..." directory structure to move things  
							
							... 
							
							
							
							from "llvm/Support/..." that are not llvm dependant.
Move files and fix #includes
llvm-svn: 1400 
							
						 
						
							2001-11-27 00:03:19 +00:00  
				
					
						
							
							
								 
						
							
								f0f9105d4f 
								
							 
						 
						
							
							
								
								* Implement support for folding multiple single letter arguments together like  
							
							... 
							
							
							
							with ls: ls -la  === ls -l -a
* Implement support for trimming arguments that start with a single letter
  argument so that -lfoo is recognized as -l foo for the linker
llvm-svn: 1378 
							
						 
						
							2001-11-26 18:58:34 +00:00  
				
					
						
							
							
								 
						
							
								e81c409952 
								
							 
						 
						
							
							
								
								Provide option to enable eating of all arguments following a specific one  
							
							... 
							
							
							
							llvm-svn: 986 
							
						 
						
							2001-10-27 05:54:17 +00:00  
				
					
						
							
							
								 
						
							
								d4617cdf41 
								
							 
						 
						
							
							
								
								Clean up error handling a bit.  Add / as a seperator for command line arguments.  This is just a big old ugly hack.  
							
							... 
							
							
							
							llvm-svn: 974 
							
						 
						
							2001-10-24 06:21:56 +00:00  
				
					
						
							
							
								 
						
							
								675db8db26 
								
							 
						 
						
							
							
								
								Add StringList support  
							
							... 
							
							
							
							llvm-svn: 766 
							
						 
						
							2001-10-13 06:53:19 +00:00