| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
consistent. Patch by Julien Lerouge.
llvm-svn: 132931
|
| |
|
|
|
|
|
|
|
|
| |
comments claimed it did this, but the LHS value was actually an unused variable.
The new system considers only the '-foo' part when comparing it for typos
against flags that have values, but still look at the whole string for flags
that don't. That way, we'll still correct '-inst=combine' to '-instcombine'.
llvm-svn: 130685
|
| |
|
|
| |
llvm-svn: 129002
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
developers can see if their driver changed any cl::Option's. The
current implementation isn't perfect but handles most kinds of
options. This is nice to have when decomposing the stages of
compilation and moving between different drivers. It's also a good
sanity check when comparing results produced by different command line
invocations that are expected to produce the comparable results.
Note: This is not an attempt to prolong the life of cl::Option. On the
contrary, it's a placeholder for a feature that must exist when
cl::Option is replaced by a more appropriate framework. A new
framework needs: a central option registry, dynamic name lookup,
non-global containers of option values (e.g. per-module,
per-function), *and* the ability to print options values and their defaults at
any point during compilation.
llvm-svn: 128910
|
| |
|
|
| |
llvm-svn: 124124
|
| |
|
|
| |
llvm-svn: 123717
|
| |
|
|
| |
llvm-svn: 122116
|
| |
|
|
|
|
| |
via an out parm.
llvm-svn: 121958
|
| |
|
|
|
|
| |
error_code &ec. And fix clients.
llvm-svn: 121379
|
| |
|
|
| |
llvm-svn: 120298
|
| |
|
|
| |
llvm-svn: 119842
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 99414
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 94746
|
| |
|
|
| |
llvm-svn: 93046
|
| |
|
|
| |
llvm-svn: 92646
|
| |
|
|
|
|
| |
end up on the same line.
llvm-svn: 90473
|
| |
|
|
|
|
| |
diagnoses this ill-formity.
llvm-svn: 89846
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 89364
|
| |
|
|
|
|
|
| |
of failure. The x86 target didn't like empty cpu names and broke x86 tests on
non-x86 buildbots.
llvm-svn: 89111
|
| |
|
|
| |
llvm-svn: 88813
|
| |
|
|
|
|
| |
Approved by Evan Cheng.
llvm-svn: 86797
|
| |
|
|
|
|
| |
string at the end of the list, instead of the last comma-separated string.
llvm-svn: 83405
|
| |
|
|
| |
llvm-svn: 82683
|
| |
|
|
|
|
|
| |
a trivial unittest would have caught. This revision also adds the trivial
unittest.
llvm-svn: 82675
|
| |
|
|
| |
llvm-svn: 82384
|
| |
|
|
| |
llvm-svn: 82377
|
| |
|
|
| |
llvm-svn: 82375
|
| |
|
|
| |
llvm-svn: 82372
|
| |
|
|
| |
llvm-svn: 82370
|
| |
|
|
|
|
| |
non-sorted order, restore the sort.
llvm-svn: 82368
|
| |
|
|
|
|
| |
populates the Opts vector in the first place.
llvm-svn: 82367
|
| |
|
|
|
|
| |
71524->70700 bytes.
llvm-svn: 82366
|
| |
|
|
|
|
|
|
| |
deleting from
the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :)
llvm-svn: 82365
|
| |
|
|
|
|
| |
release-asserts .o file (72900->71856).
llvm-svn: 82364
|
| |
|
|
| |
llvm-svn: 82363
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 82360
|
| |
|
|
| |
llvm-svn: 82352
|
| |
|
|
|
|
| |
maintain the "null is unspecified, empty is empty" semantics.
llvm-svn: 82351
|
| |
|
|
|
|
|
|
| |
temporary std::strings.
This requires StringRef'izing ProvideOption which I also did.
llvm-svn: 82350
|
| |
|
|
| |
llvm-svn: 82348
|
| |
|
|
| |
llvm-svn: 82346
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
a std::vector and a bunch of std::string temporaries.
llvm-svn: 82341
|
| |
|
|
| |
llvm-svn: 82339
|
| |
|
|
|
|
|
| |
a massive number of temporary strings created when parsing a command line.
More still left to eliminate.
llvm-svn: 82318
|
| |
|
|
|
|
|
|
| |
- 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
|