Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add new configure option, --disable-timestamps, intended to turn off ↵ | Daniel Dunbar | 2010-05-10 | 1 | -0/+2 |
| | | | | | | | | | anything which would mess up binary/object comparisons. Currently: - Disables 'Built on ...' in 'foo --version'. - Disables timestamps from being embedded into .dir files. llvm-svn: 103423 | ||||
* | Fix minor style issues. | Dan Gohman | 2010-03-24 | 1 | -2/+2 |
| | | | | llvm-svn: 99414 | ||||
* | Refer to -help instead of --help since this is what tools themselves say. | Duncan Sands | 2010-02-18 | 1 | -7/+7 |
| | | | | | | | | Also, have tools output -help-hidden rather than refer to --help-hidden, for consistency, and likewise adjust documentation. This doesn't change every mention of --help, only those which seemed clearly safe. llvm-svn: 96578 | ||||
* | Replace strcpy with memcpy when we have the length around anyway. | Benjamin Kramer | 2010-01-28 | 1 | -2/+3 |
| | | | | llvm-svn: 94746 | ||||
* | Suppress use of uninitialized variable warning. | Duncan Sands | 2010-01-09 | 1 | -1/+1 |
| | | | | llvm-svn: 93046 | ||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -3/+3 |
| | | | | llvm-svn: 92646 | ||||
* | Print a newline after the Args: line so that unrelated errs() output doesn't | Dan Gohman | 2009-12-03 | 1 | -1/+2 |
| | | | | | | end up on the same line. llvm-svn: 90473 | ||||
* | Perform explicit instantiations in the proper namespace, since Clang ↵ | Douglas Gregor | 2009-11-25 | 1 | -0/+2 |
| | | | | | | diagnoses this ill-formity. llvm-svn: 89846 | ||||
* | Move the handling of CommaSeparated options into ProvideOption. | Mikhail Glushenkov | 2009-11-20 | 1 | -23/+33 |
| | | | | | | | | Makes '--comma-separated val1,val2' mean the same thing as '--comma-separated=val1,val2' (that is, 'val1' and 'val2' are not lumped together as 'val1,val2'). Also declutters the main loop a bit. llvm-svn: 89463 | ||||
* | Trailing whitespace. | Mikhail Glushenkov | 2009-11-19 | 1 | -25/+25 |
| | | | | llvm-svn: 89364 | ||||
* | Revert CPU detection code to return "generic" instead of an empty string in case | Benjamin Kramer | 2009-11-17 | 1 | -1/+1 |
| | | | | | | | of failure. The x86 target didn't like empty cpu names and broke x86 tests on non-x86 buildbots. llvm-svn: 89111 | ||||
* | Report the detected host CPU in --version. | Daniel Dunbar | 2009-11-14 | 1 | -0/+3 |
| | | | | llvm-svn: 88813 | ||||
* | Show command-line args and features passed into backend in debug output. ↵ | Sandeep Patel | 2009-11-11 | 1 | -0/+6 |
| | | | | | | Approved by Evan Cheng. llvm-svn: 86797 | ||||
* | Bugfix for the CommaSeparated option. The original code was adding the whole | Nicolas Geoffray | 2009-10-06 | 1 | -0/+1 |
| | | | | | | string at the end of the list, instead of the last comma-separated string. llvm-svn: 83405 | ||||
* | reapply r82348 with a fix, thanks Jeffrey. | Chris Lattner | 2009-09-24 | 1 | -33/+24 |
| | | | | llvm-svn: 82683 | ||||
* | Roll back r82348, which introduced an infinite loop in ParseCStringVector() that | Jeffrey Yasskin | 2009-09-24 | 1 | -22/+33 |
| | | | | | | | a trivial unittest would have caught. This revision also adds the trivial unittest. llvm-svn: 82675 | ||||
* | tidy up | Chris Lattner | 2009-09-20 | 1 | -1/+1 |
| | | | | llvm-svn: 82384 | ||||
* | smallvectorize getExtraOptionNames | Chris Lattner | 2009-09-20 | 1 | -2/+1 |
| | | | | llvm-svn: 82377 | ||||
* | minor cleanups. | Chris Lattner | 2009-09-20 | 1 | -22/+24 |
| | | | | llvm-svn: 82375 | ||||
* | strength reduce further StringRef-> const char*, saving another 620 bytes. | Chris Lattner | 2009-09-20 | 1 | -5/+11 |
| | | | | llvm-svn: 82372 | ||||
* | switch an std::string to StringRef, shaving 400 bytes off CommandLine.o | Chris Lattner | 2009-09-20 | 1 | -11/+10 |
| | | | | llvm-svn: 82370 | ||||
* | the switch from std::map -> StringMap caused --help output to be in | Chris Lattner | 2009-09-20 | 1 | -5/+15 |
| | | | | | | non-sorted order, restore the sort. llvm-svn: 82368 | ||||
* | eliminate the duplicate detection loop, moving it into the loop that ↵ | Chris Lattner | 2009-09-20 | 1 | -13/+6 |
| | | | | | | populates the Opts vector in the first place. llvm-svn: 82367 | ||||
* | Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from ↵ | Chris Lattner | 2009-09-20 | 1 | -13/+8 |
| | | | | | | 71524->70700 bytes. llvm-svn: 82366 | ||||
* | don't use count + insert, just do insert + failure. Also, instead of ↵ | Chris Lattner | 2009-09-20 | 1 | -6/+9 |
| | | | | | | | | deleting from the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :) llvm-svn: 82365 | ||||
* | switch to SmallPtrSet instead of std::set, saving 1K from the | Chris Lattner | 2009-09-20 | 1 | -4/+4 |
| | | | | | | release-asserts .o file (72900->71856). llvm-svn: 82364 | ||||
* | change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%. | Chris Lattner | 2009-09-20 | 1 | -1/+2 |
| | | | | llvm-svn: 82363 | ||||
* | Several changes together in a murky mess: | Chris Lattner | 2009-09-20 | 1 | -84/+102 |
| | | | | | | | | | | | | 1. Change some "\n" -> '\n'. 2. eliminte some std::string's by using raw_ostream::indent. 3. move a bunch of code out of the main arg parser routine into a new static HandlePrefixedOrGroupedOption function. 4. Greatly simplify the implementation of getOptionPred, and make it avoid splitting prefix options at = when that doesn't match a non-prefix option. llvm-svn: 82362 | ||||
* | Fix refacto, this code was expecting to stride past the argument prefix. | Daniel Dunbar | 2009-09-20 | 1 | -0/+1 |
| | | | | llvm-svn: 82360 | ||||
* | convert argname to StringRef, simplifying LookupOption. | Chris Lattner | 2009-09-20 | 1 | -21/+22 |
| | | | | llvm-svn: 82352 | ||||
* | convert 'Value' to StringRef which makes it easier to | Chris Lattner | 2009-09-20 | 1 | -12/+8 |
| | | | | | | maintain the "null is unspecified, empty is empty" semantics. llvm-svn: 82351 | ||||
* | Change CommaSeparated processing to do it with StringRef instead of ↵ | Chris Lattner | 2009-09-20 | 1 | -21/+26 |
| | | | | | | | | temporary std::strings. This requires StringRef'izing ProvideOption which I also did. llvm-svn: 82350 | ||||
* | rewrite ParseCStringVector in terms of stringref. | Chris Lattner | 2009-09-20 | 1 | -33/+22 |
| | | | | llvm-svn: 82348 | ||||
* | coding style cleanup | Chris Lattner | 2009-09-20 | 1 | -13/+12 |
| | | | | llvm-svn: 82346 | ||||
* | convert a bunch more stuff to use StringRef. The ArgName arguments are now | Chris Lattner | 2009-09-20 | 1 | -28/+29 |
| | | | | | | | | stringref because they may not be nul terminated. For options like -Lfoo this now avoids a O(n) temporary std::strings where N is the length of the string after -L. llvm-svn: 82345 | ||||
* | avoid a bunch of malloc thrashing for PositinoalVals by eliminating | Chris Lattner | 2009-09-20 | 1 | -11/+9 |
| | | | | | | a std::vector and a bunch of std::string temporaries. llvm-svn: 82341 | ||||
* | Avoid some temporary strings. | Chris Lattner | 2009-09-19 | 1 | -19/+6 |
| | | | | llvm-svn: 82339 | ||||
* | convert a bunch of std::strings to use StringRef. This should eliminate | Chris Lattner | 2009-09-19 | 1 | -48/+56 |
| | | | | | | | a massive number of temporary strings created when parsing a command line. More still left to eliminate. llvm-svn: 82318 | ||||
* | Try to speed up the slowest parts of the CommandLine library | Benjamin Kramer | 2009-09-19 | 1 | -28/+28 |
| | | | | | | | | - Replace std::map<std::string with StringMap - Eliminate unnecessary std::string copies - ~10% speed-up for clang's testsuite on my machine (debug build) llvm-svn: 82312 | ||||
* | Show derived host triple in --version. | Daniel Dunbar | 2009-09-02 | 1 | -0/+2 |
| | | | | llvm-svn: 80855 | ||||
* | clean up #includes. | Chris Lattner | 2009-08-23 | 1 | -8/+4 |
| | | | | llvm-svn: 79857 | ||||
* | Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other ↵ | Benjamin Kramer | 2009-08-23 | 1 | -39/+36 |
| | | | | | | minor tweaks. llvm-svn: 79847 | ||||
* | remove some uses of llvm/Support/Streams.h | Chris Lattner | 2009-08-23 | 1 | -45/+45 |
| | | | | llvm-svn: 79842 | ||||
* | Remove duplicated colons and spaces. | Benjamin Kramer | 2009-08-02 | 1 | -15/+15 |
| | | | | llvm-svn: 77892 | ||||
* | Sort list of targets in --version. | Daniel Dunbar | 2009-07-26 | 1 | -8/+11 |
| | | | | llvm-svn: 77127 | ||||
* | Add registered target list to --version output. | Daniel Dunbar | 2009-07-16 | 1 | -2/+20 |
| | | | | llvm-svn: 75889 | ||||
* | llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. | Torok Edwin | 2009-07-14 | 1 | -2/+2 |
| | | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640 | ||||
* | assert(0) -> LLVM_UNREACHABLE. | Torok Edwin | 2009-07-11 | 1 | -1/+1 |
| | | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379 | ||||
* | Convert more assert(0)+abort() -> LLVM_UNREACHABLE, | Torok Edwin | 2009-07-11 | 1 | -2/+2 |
| | | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363 | ||||
* | Add support for a character after a command line option. Like '-Os'. | Bill Wendling | 2009-04-29 | 1 | -0/+3 |
| | | | | llvm-svn: 70437 |