History log of /external/llvm/lib/Support/CommandLine.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de2d8694e25a814696358e95141f4b1aa4d8847e 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r275480

Bug: http://b/31320715

This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/lib/Support/CommandLine.cpp
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/lib/Support/CommandLine.cpp
6948897e478cbd66626159776a8017b3c18579b9 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/lib/Support/CommandLine.cpp
0c7f116bb6950ef819323d855415b2f2b0aad987 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
/external/llvm/lib/Support/CommandLine.cpp
4c5e43da7792f75567b693105cc53e3f1992ad98 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master llvm for rebase to r233350

Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
/external/llvm/lib/Support/CommandLine.cpp
ebe69fe11e48d322045d5949c83283927a0d790b 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r230699.

Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
/external/llvm/lib/Support/CommandLine.cpp
37ed9c199ca639565f6ce88105f9e39e898d82d0 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r222494.

Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
/external/llvm/lib/Support/CommandLine.cpp
c6a4f5e819217e1e12c458aed8e7b122e23a3a58 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/lib/Support/CommandLine.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/Support/CommandLine.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/lib/Support/CommandLine.cpp
354362524a72b3fa43a6c09380b7ae3b2380cbba 19-Nov-2013 Juergen Ributzka <juergen@apple.com> [weak vtables] Remove a bunch of weak vtables

This patch removes most of the trivial cases of weak vtables by pinning them to
a single object file. The memory leaks in this version have been fixed. Thanks
Alexey for pointing them out.

Differential Revision: http://llvm-reviews.chandlerc.com/D2068

Reviewed by Andy

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195064 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b21ab43cfc3fa0dacf5c95f04e58b6d804b59a16 18-Nov-2013 Alexey Samsonov <samsonov@google.com> Revert r194865 and r194874.

This change is incorrect. If you delete virtual destructor of both a base class
and a subclass, then the following code:
Base *foo = new Child();
delete foo;
will not cause the destructor for members of Child class. As a result, I observe
plently of memory leaks. Notable examples I investigated are:
ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
5a364c5561ec04e33a6f5d52c14f1bac6f247ea0 15-Nov-2013 Juergen Ributzka <juergen@apple.com> [weak vtables] Remove a bunch of weak vtables

This patch removes most of the trivial cases of weak vtables by pinning them to
a single object file.

Differential Revision: http://llvm-reviews.chandlerc.com/D2068

Reviewed by Andy

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
264e92d6db46083f9f46484ec39e99f18d35d370 30-Jul-2013 Rui Ueyama <ruiu@google.com> Implement TokenizeWindowsCommandLine.

This is a follow up patch for r187390 to implement the parser for the
Windows-style command line. This should follow the rule as described
at http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx

Differential Revision: http://llvm-reviews.chandlerc.com/D1235

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1e3c0a4c77611f99f1e482de256c59358a902b63 24-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't leak when expanding response files.

Before this patch we would strdup each argument. If one was a response file,
we would replace it with the response file contents, leaking the original
strdup result.

We now don't strdup the originals and let StringSaver free any memory it
allocated. This also saves a bit of malloc traffic when response files are
not used.

Leak found by the valgrind build bot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187042 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
431b0a7646105c53c607cbf0015c615269bc5f11 18-Jul-2013 Reid Kleckner <reid@kleckner.net> [Support] Beef up and expose the response file parsing in llvm::cl

The plan is to use it for clang and lld.

Major behavior changes:
- We can now parse UTF-16 files that have a byte order mark.
- PR16209: Don't drop backslashes on the floor if they don't escape
anything.

The actual parsing loop was based on code from Clang's driver.cpp,
although it's been rewritten to track its state with control flow rather
than state variables.

Reviewers: hans

Differential Revision: http://llvm-reviews.chandlerc.com/D1170

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186587 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
234cad70a5a00c38e7c75cd0354f15e1905e2642 12-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't use PathV1 in CommandLine.cpp.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
a5e855d8594ccc7e7fffd2c1886088175ba84950 12-Jun-2013 Patrik Hagglund <patrik.h.hagglund@ericsson.com> Fix 'gcc -flto' builds for unittest binaries (undefined reference to
`typeinfo for llvm::cl::GenericOptionValue').

Remove an "anchor" method for an abstract class. (This does not
increase the number of vtables.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f3e397eb17327423b3f8fff5eac8547c85efddb1 11-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Include PathV1.h in files that use it.

This is preparation for replacing Path.h with PathV2.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183782 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2e24e19cacacd4eea346b914124ffc3acadbd72e 10-May-2013 Alexander Kornienko <alexfh@google.com> Better output for long help strings for command-line options.

Summary:
This patch allows using \n inside long help strings for command-line
options, so that all lines are equally indented. This is not a perfect solution,
as we don't (and probably don't want to) know about terminal width, but it
allows to format long help strings somehow readable without manually padding
them with spaces. A motivating example is -help output from clang-format (source
code in tools/clang-format/ClangFormat.cpp, see cl options offset, length,
style, and dump-config).

Reviewers: atrick, alexfh

Reviewed By: alexfh

CC: llvm-commits, rafael

Differential Revision: http://llvm-reviews.chandlerc.com/D779

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181608 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
61e01721978af4c2979c4b9153e56e72eb6389fb 06-May-2013 Andrew Trick <atrick@apple.com> Implemented public interface for modifying registered (not positional or sink options) command line options at runtime.

Patch by Dan Liew!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b7ad33b7195cb99b0cbb1c5308324d328650ca45 06-May-2013 Andrew Trick <atrick@apple.com> Support command line option categories.

Patch by Dan Liew!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ddde2082db45078dadb14c887aeb3cb63d1eace2 10-Mar-2013 Craig Topper <craig.topper@gmail.com> Remove an unused member variable from HelpPrinter. Move another member variable to be a local variable in the only method that uses it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Use the new script to sort the includes of every file under lib.

Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.

Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b4e971f376f15325d6918d7fae0c28c8dad5a78c 09-Oct-2012 Rafael Espindola <rafael.espindola@gmail.com> Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplified
the test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165535 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2127c9b93a5fd5f04ffaced84bde0696bd57fce6 19-Jul-2012 Bill Wendling <isanbard@gmail.com> Remove tabs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160479 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e840fef4c2cac5f85d17a1bffe3f0ac14724d115 12-Mar-2012 Duncan Sands <baldrick@free.fr> Don't cast away constant qualifier.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ebba0558c84b67f73989e174e4512f5af0c06cb1 07-Feb-2012 David Blaikie <dblaikie@gmail.com> Correct use of const in ParseCommandLineOptions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c48d4dc8a9371690f73d2d05d2297f1e1a19c952 25-Jan-2012 Jim Grosbach <grosbach@apple.com> Tidy up. s/Low Level Virtual Machine/LLVM/.

LLVM isn't an acronym anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d0278d529b624fb93ec89da21836ea6f436e1b1e 23-Jan-2012 David Blaikie <dblaikie@gmail.com> Remove dead default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2dd674fdce68f8fd59d78a3bbab2cf5b8d220290 17-Jan-2012 David Blaikie <dblaikie@gmail.com> Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.

(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148262 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6e9b5eb51bb623995c90295d265a7682277653a1 05-Jan-2012 Sebastian Pop <spop@codeaurora.org> revert r147542 after comments from Joerg Sonnenberger

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147608 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
8a86887ba3dcf59ddfd1d26bd2af1ac9c6bed76a 04-Jan-2012 Sebastian Pop <spop@codeaurora.org> use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT

Get back getHostTriple.

For JIT compilation, use the host triple instead of the default
target: this fixes some JIT testcases that used to fail when the
compiler has been configured as a cross compiler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147542 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
0becc96b243da058f6d8901128b173d192db5148 01-Dec-2011 David Blaikie <dblaikie@gmail.com> Add some missing anchors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
0173864d8a87d9243d304fbf91b556e20b5a32fc 01-Nov-2011 Sebastian Pop <spop@codeaurora.org> rename getHostTriple into getDefaultTargetTriple



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b3514569d078065ced56562e01fd5a39e01543da 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> CommandLine: Add support for 64 bit unsigned integer options.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
4039313b4c9796d194d90f88675ceb47a183696e 22-Jul-2011 Chandler Carruth <chandlerc@gmail.com> Move the registered target printing in version strings completely out of
the Support library. Now its part of the TargetRegistry, and the three
commands that care about this explicitly register this extra bit of
version information.

The set of commands which care was computed by intersecting those which
use the Support library's version string printing and those that
initialize all the registered targets in a way that produces
a meaningful list. The only odd ball out is that 'clang -cc1as -version'
no longer prints the registered targets. I don't think anyone is really
interested in that (especially as the fact that llvm-mc does so is under
a FIXME), but if someone really does want this back I'll happily apply
the same patch there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
077c40871780136f7016a496703b20ebea9c0978 22-Jul-2011 Chandler Carruth <chandlerc@gmail.com> Move the logic for printing the registered targets into a static
function on the TargetRegistry. Also clean it up and use the modern LLVM
utility libraries available instead of rolling a few things manually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135756 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6d51d26a2479069f85a7676f664d6f998fc49a16 22-Jul-2011 Chandler Carruth <chandlerc@gmail.com> Add an extension point to the CommandLine library where clients can
register extra version information to be printed. This is designed to
allow those tools which link in various targets to also print those
registered targets under --version.

Currently this printing logic is embedded into the Support library
directly; a huge layering violation. This is the first step to hoisting
it out into the tools without adding lots of duplicated code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ff276b40f0bfd72938f964061c13ed18be7c008f 13-Jun-2011 Evan Cheng <evan.cheng@apple.com> Aliased flag options should be directed to stdout, not stderr to be consistent. Patch by Julien Lerouge.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
95d206a9c7218deca9dd6c3f24513596f1226879 02-May-2011 Nick Lewycky <nicholas@mxc.ca> In option typo correction, consider -foo=VALUE flags as two distinct parts. The
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'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130685 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
090771fa26086a72d814f7d47235deb22dac1b05 06-Apr-2011 Frits van Bommel <fvbommel@gmail.com> Fix a few instances of "warning: extra ';' outside of a function [-pedantic]".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129002 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ce96902d88d473697f05c0465952dae374be564e 05-Apr-2011 Andrew Trick <atrick@apple.com> Added *hidden* flags -print-options and -print-all-options so
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c98d82a7f0a2a0a8b939c611954d59bab677bfe7 24-Jan-2011 Daniel Dunbar <daniel@zuster.org> Support/CommandLine: Fix LookupNearestOption to also search extra option names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124124 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f4fb66acae1ae9a296c091a7a857c1d01953b444 18-Jan-2011 Daniel Dunbar <daniel@zuster.org> Support/CommandLine: Add "Did you mean" print for mismatched operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123717 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b3127bb06a9b2a95a587bbe555c2ea0d83e4eaba 18-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV1: Deprecate getLast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122116 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa 16-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
333fb04506233255f10d8095c9e2de5e5f0fdc6f 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
a962b40f0bcaee07296836e175112602c58e439f 19-Nov-2010 Rafael Espindola <rafael.espindola@gmail.com> Fix a use after free. Patch by Frits van Bommel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
dd464df687faf544e83684d0c0e4da87c05f8bfe 10-May-2010 Daniel Dunbar <daniel@zuster.org> Add new configure option, --disable-timestamps, intended to turn off anything which would mess up binary/object comparisons. Currently:
- Disables 'Built on ...' in 'foo --version'.
- Disables timestamps from being embedded into .dir files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103423 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
16e02097d283159c240996185a8b20f4ea46ccfc 24-Mar-2010 Dan Gohman <gohman@apple.com> Fix minor style issues.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
7e7ae5ad692760aa8d97477f061a05b10948cf57 18-Feb-2010 Duncan Sands <baldrick@free.fr> Refer to -help instead of --help since this is what tools themselves say.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
12ea66a7277240c5b045ed14c140f94d453eea0e 28-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Replace strcpy with memcpy when we have the length around anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1fa8b00b30e3e9ea3ea86ccb819bb9eb11117e6d 09-Jan-2010 Duncan Sands <baldrick@free.fr> Suppress use of uninitialized variable warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93046 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
fcb5b831f613e1d73b490efa6c458334d04918c3 05-Jan-2010 David Greene <greened@obbligato.org> Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92646 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
018402d30c30a04d10e0b1afbc2e5f4e1b84190d 03-Dec-2009 Dan Gohman <gohman@apple.com> Print a newline after the Args: line so that unrelated errs() output doesn't
end up on the same line.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b3587cfb3bd2de1675836eca8802661d32d6eb4d 25-Nov-2009 Douglas Gregor <dgregor@apple.com> Perform explicit instantiations in the proper namespace, since Clang diagnoses this ill-formity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
37628e009827420d56cdf9b26c5104abd726e53b 20-Nov-2009 Mikhail Glushenkov <foldr@codedgers.com> Move the handling of CommaSeparated options into ProvideOption.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
eeebecfcb4156319899c8dc63cd28c05f313538b 19-Nov-2009 Mikhail Glushenkov <foldr@codedgers.com> Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
110e7bb25cab03b6f7051a336233699f3e3ec1e3 17-Nov-2009 Benjamin Kramer <benny.kra@googlemail.com> Revert CPU detection code to return "generic" instead of an empty string in case
of failure. The x86 target didn't like empty cpu names and broke x86 tests on
non-x86 buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ba43e0785b7449501f019b9aa4433881dd05bb6a 14-Nov-2009 Daniel Dunbar <daniel@zuster.org> Report the detected host CPU in --version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
bf177ee6fd234dee70ebf6f0ef7c39b55f8ed4f5 11-Nov-2009 Sandeep Patel <deeppatel1987@gmail.com> Show command-line args and features passed into backend in debug output. Approved by Evan Cheng.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
35b305863ad821004f27b97546597c5ba6a65172 06-Oct-2009 Nicolas Geoffray <nicolas.geoffray@lip6.fr> Bugfix for the CommaSeparated option. The original code was adding the whole
string at the end of the list, instead of the last comma-separated string.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
63e944b05e75bc026cb3a0bb0697f364682fc794 24-Sep-2009 Chris Lattner <sabre@nondot.org> reapply r82348 with a fix, thanks Jeffrey.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82683 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1d75d3a8ae5c682521e2a3968a132236ad47f410 24-Sep-2009 Jeffrey Yasskin <jyasskin@google.com> Roll back r82348, which introduced an infinite loop in ParseCStringVector() that
a trivial unittest would have caught. This revision also adds the trivial
unittest.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82675 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
fd40d038b32096d12af83b28e9ccd1ae3837356f 20-Sep-2009 Chris Lattner <sabre@nondot.org> tidy up


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1908aea3a64fa89a907317849cbff73789cdb89a 20-Sep-2009 Chris Lattner <sabre@nondot.org> smallvectorize getExtraOptionNames


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
49b301c40a0a1172dbdd7b55bbaee83eed57aab4 20-Sep-2009 Chris Lattner <sabre@nondot.org> minor cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
bc2d9d3de51368091601dcd34ae9556d4f9f52c0 20-Sep-2009 Chris Lattner <sabre@nondot.org> strength reduce further StringRef-> const char*, saving another 620 bytes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
043b8b5bb2a54133549fbf08e78345a5d086328a 20-Sep-2009 Chris Lattner <sabre@nondot.org> switch an std::string to StringRef, shaving 400 bytes off CommandLine.o


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82370 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
0fd48b1f1ce923828460fe097faa968b3ea28cb7 20-Sep-2009 Chris Lattner <sabre@nondot.org> the switch from std::map -> StringMap caused --help output to be in
non-sorted order, restore the sort.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82368 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d0062c6e7c870da1f5fa7e587be21aa8ac1188fb 20-Sep-2009 Chris Lattner <sabre@nondot.org> eliminate the duplicate detection loop, moving it into the loop that populates the Opts vector in the first place.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
081bcb0d41f6300b92967b2758e0ba1f23e38462 20-Sep-2009 Chris Lattner <sabre@nondot.org> Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from 71524->70700 bytes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b40b7e3fafe9b6ef68a5b100e2a6601adcb67b8b 20-Sep-2009 Chris Lattner <sabre@nondot.org> don't use count + insert, just do insert + failure. Also, instead of deleting from
the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
67aead68beae1fca4c53e92a1682364ba8cb497d 20-Sep-2009 Chris Lattner <sabre@nondot.org> switch to SmallPtrSet instead of std::set, saving 1K from the
release-asserts .o file (72900->71856).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
14aae60b69e069c9a8ac805a9e46e215757b2efc 20-Sep-2009 Chris Lattner <sabre@nondot.org> change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b168737a7479bc5c1cfdf62f8cc0f9ad652c2676 20-Sep-2009 Chris Lattner <sabre@nondot.org> Several changes together in a murky mess:
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82362 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
256db9bf9de7320c6d8b375e1b6ba44ae96c3680 20-Sep-2009 Daniel Dunbar <daniel@zuster.org> Fix refacto, this code was expecting to stride past the argument prefix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82360 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
8a7a05814c70d84eace161d3eed07f5b5cfdd8d6 20-Sep-2009 Chris Lattner <sabre@nondot.org> convert argname to StringRef, simplifying LookupOption.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82352 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
4e247ec4952db1e39b4cc074a38b9f1d52cdaa28 20-Sep-2009 Chris Lattner <sabre@nondot.org> convert 'Value' to StringRef which makes it easier to
maintain the "null is unspecified, empty is empty" semantics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
341620b2762e604fbf8c75913a1cc5b9c9297b7d 20-Sep-2009 Chris Lattner <sabre@nondot.org> Change CommaSeparated processing to do it with StringRef instead of temporary std::strings.
This requires StringRef'izing ProvideOption which I also did.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82350 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b7b71a37a1bb88ef88c387f8a31bfc10dd816e83 20-Sep-2009 Chris Lattner <sabre@nondot.org> rewrite ParseCStringVector in terms of stringref.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
fb2674d0de83cbf3b79c269bc694f612de148950 20-Sep-2009 Chris Lattner <sabre@nondot.org> coding style cleanup


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
99c5c7b7df4fe44d54cd680e7878c44789e6e057 20-Sep-2009 Chris Lattner <sabre@nondot.org> convert a bunch more stuff to use StringRef. The ArgName arguments are now
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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ba11229f52743ac70f01d4f62d1e04dd093de4e0 20-Sep-2009 Chris Lattner <sabre@nondot.org> avoid a bunch of malloc thrashing for PositinoalVals by eliminating
a std::vector and a bunch of std::string temporaries.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
970e7dff5ba2bd8c5613c43e3b215ca940a378e9 20-Sep-2009 Chris Lattner <sabre@nondot.org> Avoid some temporary strings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82339 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
a460beb5cdc1cf05da3b22a39fd2b3107ea2e2fe 19-Sep-2009 Chris Lattner <sabre@nondot.org> convert a bunch of std::strings to use StringRef. This should eliminate
a massive number of temporary strings created when parsing a command line.
More still left to eliminate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82318 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
461c87655b89fd44604bf705b68e7541d2b721a7 19-Sep-2009 Benjamin Kramer <benny.kra@googlemail.com> Try to speed up the slowest parts of the CommandLine library

- Replace std::map<std::string with StringMap
- Eliminate unnecessary std::string copies
- ~10% speed-up for clang's testsuite on my machine (debug build)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6552478ee74abe6851cebc5762a1dbe6982bb122 03-Sep-2009 Daniel Dunbar <daniel@zuster.org> Show derived host triple in --version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ca179340ce51ca394a836444d4dd1974ce18e1a4 23-Aug-2009 Chris Lattner <sabre@nondot.org> clean up #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d227a3fb1af350ad32b06cd9b2357f7084e46dcb 23-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d9ea85ab01fb0f2929ed50223d3758dceea8bcbd 23-Aug-2009 Chris Lattner <sabre@nondot.org> remove some uses of llvm/Support/Streams.h



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e6864c1d355c4ec1156b956c1dd548682ad3e6b1 02-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Remove duplicated colons and spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
77454a2105404c972aa10322524b9ea08609cd9c 26-Jul-2009 Daniel Dunbar <daniel@zuster.org> Sort list of targets in --version.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
603bea32743dc9914a1d32ae36fc64fe497af801 16-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add registered target list to --version output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75889 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c23197a26f34f559ea9797de51e187087c039c42 14-Jul-2009 Torok Edwin <edwintorok@gmail.com> llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.
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").


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c25e7581b9b8088910da31702d4ca21c4734c6d7 11-Jul-2009 Torok Edwin <edwintorok@gmail.com> assert(0) -> LLVM_UNREACHABLE.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
7d696d80409aad20bb5da0fc4eccab941dd371d4 11-Jul-2009 Torok Edwin <edwintorok@gmail.com> Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b587f9662a7b6f00f9ce48ddf2dea1a4fb18a6db 30-Apr-2009 Bill Wendling <isanbard@gmail.com> Add support for a character after a command line option. Like '-Os'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70437 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
00a7b52385a25ab8cd412ce4c0f0ce11176b6793 08-Apr-2009 Chris Lattner <sabre@nondot.org> Remove AllowInverse: it leaks memory and is not the right
abstraction for CommandLine.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d485e885f04eaaafc9c0ce2555c6bd853b7c18a3 01-Apr-2009 Misha Brukman <brukman+llvm@gmail.com> * Fixed spelling of `invertible'
* Simplified if statement


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e8b64106ecf1057c7506d44ec8f64b5c83ee51c7 28-Mar-2009 Chris Lattner <sabre@nondot.org> move a large method out of line.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d64e0eb094a108bdcdf51328425904042aa6122b 02-Feb-2009 Mike Stump <mrs@apple.com> Improve -fno-opt style option processing to not require an extra
option to make the -fno- form on the option. We also document the new
form in the CommandLine documentation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d6f175b3ec8d40e33ab8110020ca8feb98295834 30-Jan-2009 Mike Stump <mrs@apple.com> Add opposite_of and inverse_opt to support -fno- style options. This
is necessary for eventual gcc commmand line compatibility.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6c55b1ca7b72c90ce93ca25bc35aefef7d7deda4 28-Jan-2009 Mikhail Glushenkov <foldr@codedgers.com> Clarify comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1421b7bc23f39e57052a51f4647512936f45b12f 21-Jan-2009 Mikhail Glushenkov <foldr@codedgers.com> Mimic gcc behaviour with regard to response files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62688 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
7059d47a6e1a378232dce3e47b51434dec0ea608 16-Jan-2009 Mikhail Glushenkov <foldr@codedgers.com> Support for multi-valued options in CommandLine

Makes possible to specify options that take multiple arguments (a-la
-sectalign on Darwin). See documentation for details.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1f33f8e4cc90c62a2f311a0d506c2fb43c4cbdac 23-Dec-2008 Steve Naroff <snaroff@apple.com> Tweak --version to include the date and time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
34283c8303d6ad506557198dce677a1d6610b31f 09-Dec-2008 Nuno Lopes <nunoplopes@sapo.pt> remove unused var

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b8cab9227a0f6ffbdaae33e3c64268e265008a6a 14-Oct-2008 Dan Gohman <gohman@apple.com> Fix command-line option printing to print two spaces where needed,
instead of requiring all "short description" strings to begin with
two spaces. This makes these strings less mysterious, and it fixes
some cases where short description strings mistakenly did not
begin with two spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
33540adca55b95a5fdbb0dc783ded319a90b4bc1 30-May-2008 Matthijs Kooijman <matthijs@stdin.nl> Give a proper error message when a command line option is defined more than
once (ie, at two different places in the source, not two times on the
commandline).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
34cd4a484e532cc463fd5a4bf59b88d13c5467c1 05-May-2008 Evan Cheng <evan.cheng@apple.com> Fix more -Wshorten-64-to-32 warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
beb4d8293d5311c4581fd3d914f865e358af53a5 28-Apr-2008 Mikhail Glushenkov <foldr@codedgers.com> Add support for response files to the CommandLine library.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
950a4c40b823cd4f09dc71be635229246dfd6cac 25-Mar-2008 Dan Gohman <gohman@apple.com> Add explicit keywords.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
cfbb2f074da2842e42956d3b4c21e91b37f36f06 25-Mar-2008 Dan Gohman <gohman@apple.com> A quick nm audit turned up several fixed tables and objects that were
marked read-write. Use const so that they can be allocated in a
read-only segment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
61e015fe7426ca97c3c7afb583f04f5f93050370 23-Feb-2008 Dan Gohman <gohman@apple.com> Fix a bug that caused opt and other tools to silently ignore
invalid command-line options.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d57160d097d6cdb966e5c851215acbd2bf1aa236 20-Feb-2008 Anton Korobeynikov <asl@math.spbu.ru> Add 'sink' cmdline option. Patch by Mikhail Glushenkov!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ae9f3a3b7c915f725aef5a7250e88eaeddda03c6 20-Feb-2008 Anton Korobeynikov <asl@math.spbu.ru> Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
4ee451de366474b9c228b4e5fa573795a715216d 29-Dec-2007 Chris Lattner <sabre@nondot.org> Remove attribution from file headers, per discussion on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9a5263241d40d493445d7f386b4d76be088c3ac1 09-Oct-2007 Dan Gohman <gohman@apple.com> Pass argc by value, not by reference, since it isn't modified.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
82a13c9c4811e40d0ff858c508cb54d672ee926e 08-Oct-2007 Dan Gohman <gohman@apple.com> Move the space in overview output for commands out of each of the
commands and into the common code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
81da02b553b86868637f27b89c6e919c31ed5b51 22-May-2007 Dale Johannesen <dalej@apple.com> Make tail merging the default, except on powerPC. There was no prior art
for a target-dependent default with a command-line override; this way
should be generally usable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
69d6f1358ca8c442a65fd8d5900f7296fbb2762d 12-Apr-2007 Chris Lattner <sabre@nondot.org> improve the patch for PR1318 to also support grouped options with custom
handlers (like the pass list). My previous fix only supported *new* command
line options, not additions to old ones.

This fixes test/Feature/load_module.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35935 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
159b0a43408e2521110e22e445ec126aaab16788 11-Apr-2007 Chris Lattner <sabre@nondot.org> Fix PR1318 by reacting appropriately to a mutating option list.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ee2b32082eff7366621ed2ab119deb96b7c26cec 07-Apr-2007 Chris Lattner <sabre@nondot.org> Fix a bug in my earlier commit which exposed positional options backwards.
This fixes llvm-ar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35727 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9878d6ae3a535e421f69e0c08e27b259ad1bdbdc 06-Apr-2007 Chris Lattner <sabre@nondot.org> rearchitect the registration mechanism used by the command line option stuff.
This dramatically reduce the amount of memory allocated by the commandline stuff
at static init time, changing it to build local data structures when ParseCommandLineOptions
is called. In a dummy empty program that links some llvm libraries, this reduces
the number of malloc'd bytes from 4864 to 3360 on entry to main. Most of that
memory is now allocated by non-commandline related stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
af035f3460f7d758f73987c3f692faf8d6cae062 05-Apr-2007 Chris Lattner <sabre@nondot.org> remove the dead removeArgument method, rename Options to OptionsMap.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35690 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
aed293dfba04b07a867491c11dfff4bf3eb6bddd 01-Feb-2007 Devang Patel <dpatel@apple.com> Add PrintVersionMessage() that tools can use to print version number
without exiting program.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33737 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1a097e30d39e60303ae2b19f7a56e813f3e3c18e 08-Dec-2006 Bill Wendling <isanbard@gmail.com> Don't use <sstream> in Streams.h but <iosfwd> instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32340 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e81561909d128c6e2d8033cb5465a49b2596b26a 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
fe6b146dcd09f488b12c7ff888ead9cedc92c2a6 26-Nov-2006 Bill Wendling <isanbard@gmail.com> Removed #include <iostream> and replace with llvm_* streams.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
efa3da5593117eab5209c9197cad5ca42213c12e 13-Oct-2006 Chris Lattner <sabre@nondot.org> avoid a ctor/dtor issue with the ProgramName global.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
500d8bff2077ac327deec076fc8793e740b358c0 13-Oct-2006 Chris Lattner <sabre@nondot.org> shrink anon-ns and mark stuff static. No functionality changes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
90aa839c88776e3dd0b3a798a98ea30d85b6b53c 04-Oct-2006 Chris Lattner <sabre@nondot.org> Fix more static dtor issues


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
232885873fb0081acc1420ab83b14ab6f8eba280 28-Aug-2006 Chris Lattner <sabre@nondot.org> Minor code cleanups


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29917 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
7422a761008ef63152417c5e69ddc31252fb6b10 27-Aug-2006 Chris Lattner <sabre@nondot.org> Add external definitions for commonly-used template specializations and add
anchor methods to others. This eliminates the vtable/template method bloat
in .o files that defining a cl::opt used to impose (~4K per .o file for one
cp::opt<unsigned>).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6f4c60770cfe6c485cdcb1397df59d2c7778cbc9 23-Aug-2006 Reid Spencer <rspencer@reidspencer.com> Make the ProgramName variable a std::string so we can eliminate the path
portion fo the program name via sys::Path().getLast(). This makes error
messages more readable since this is invariably used only in error
messages. Instead of:
/path/to/llvm/bin/directory/toolname: error message
we will now get:
toolname: error message
Also, since we always have a program name (even if its defaulted), don't
check to see if it is set or not when generating error messages. This
eliminates a bunch of constant strings, saving a little under 1K of data.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
023fcf977660e686e04f5bef0e2a7321db47df7e 21-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Make sys::Program::ExecuteAndWait not throw exceptions and update any
affected code. It now return -9999 to signal that the program couldn't be
executed. Only one case (in bugpoint) actually examines the result code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
abe0e3e6410ca3f192b6a656cbcd042b05d0a68b 02-Aug-2006 Jim Laskey <jlaskey@mac.com> If the Program name was NULL then all further output sent to std::cerr was
suppressed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29477 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
433fd76e51e9bd9a4933e2c1775a7410928112c8 19-Jul-2006 Chris Lattner <sabre@nondot.org> Add an out-of-line virtual method to provide a home for the cl::option class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29191 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
3fc2f4e83f3317f592c06e2ae7d9f1832210decb 06-Jul-2006 Chris Lattner <sabre@nondot.org> Print LLVM version info like this:

Low Level Virtual Machine (http://llvm.org/):
llvm version 1.8cvs
DEBUG build with assertions.

instead of like this:

Low Level Virtual Machine (llvm) 1.8cvs (see http://llvm.org/) ASSERTIONS ENABLED

Also, add a place for vendor version info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
515b5b379f3508f36f647bfdafce409e28a3d90b 05-Jun-2006 Reid Spencer <rspencer@reidspencer.com> Make it possible to override the standard version printer. Not all tools
built with CommandLine.h will want the --version option to report that the
tool belongs to LLVM. To override simply pass a void func() to the
cl::SetVersionPrinter() function and that void func() will be called when
it is time to print the version information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
a0de843535627977d107bbe84e4ad20cd2a5060a 28-Apr-2006 Chris Lattner <sabre@nondot.org> Fix PR743: emit -help output of a tool to cout, not cerr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
79959d21c7b2fb7bb970949b9a5227036cd50d39 17-Jan-2006 Chris Lattner <sabre@nondot.org> Add support for programs with a null argv[0]


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
786e3e22a98ce45782932478f76cf8007fb73ec4 26-Dec-2005 Duraid Madina <duraid@octopus.com.au> MERRY CHRISTMAS EVERYONE!!! (what better way to spend christmas than
to try building LLVM on HP-UX! (the Right Way seems to be to tear out
the ancient STL that HP ship and use http://incubator.apache.org/stdcxx/ )


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d5bd52ca480d914845c31185b9fe10449de505b8 16-Nov-2005 Chris Lattner <sabre@nondot.org> indicate when a tool is a debug build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
21e1a79a31fe45fcd861d64118a60c1fcfad618a 08-Aug-2005 Chris Lattner <sabre@nondot.org> Allow tools with "consume after" options (like lli) to take more positional
opts than they take directly. Thanks to John C for pointing this problem
out to me!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22717 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
de0132453e2939488c2d69290bfdfb2cde94a0af 08-Aug-2005 Chris Lattner <sabre@nondot.org> Reject command lines that have too many positional arguments passed (e.g.,
'opt x y'). This fixes PR493.

Patch contributed by Owen Anderson!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22705 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
4bf7afcc271138512c38ab2e4a348e2fe6164140 13-May-2005 Chris Lattner <sabre@nondot.org> Capitalize


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
6d5857e139df71410e98ccf6cd0e783f90a9fc16 11-May-2005 Chris Lattner <sabre@nondot.org> Do not use "" as a sentinal for a missing argument! This fixes PR560.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21850 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f976c856fcc5055f3fc7d9f070d72c2d027c1d9d 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
a92d12c053510bdad196965a6bac3168d807802e 14-Feb-2005 Chris Lattner <sabre@nondot.org> Work around GCC PR19958, which causes programs to sometimes crash after
printing help output or version info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
5f8448f79c2876466d586f2e1caec89e6f070623 24-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Implement and document prefix options with arbitrary values including an
= sign. This needed to support -DNAME=value options as pass-through in
llvmc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c4ae8e903c6abd7e391e8a16f8e850073342ca4d 21-Nov-2004 Tanya Lattner <tonic@nondot.org> Fixed assertion from triggering. We need to check if the commandline map is empty before checking if an arg exists.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c540ebbc1b7c2f6a92a968b4d36137a7332cea32 19-Nov-2004 Chris Lattner <sabre@nondot.org> Patches to avoid "leaking" memory on process exit. Patch contributed by
Morten Ofstad!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17998 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
5cc498f116cd76235c9c0a2ded46bc29f8fb35e0 16-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Add a comment to some code that at first glance just doesn't look right.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9bbba091396922093687d11a181e5886c42c5dfd 16-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Per code review:
*Implement/Document the cl::extrahelp feature instead of the MoreHelp ptr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ad0846bd8be0a86e0277e1890fd280c9868f830a 14-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Implement the MoreHelp utility that calls a function to printmore help information if the MoreHelp global is not null.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
fb4863ac5506229abe7ee9d9cfffbe4f45fe71eb 07-Nov-2004 Misha Brukman <brukman+llvm@gmail.com> Replace uses of llvm.org with llvm.cs.uiuc.edu


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> 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/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e1cc150a8e6b451e42b04b04ffb41596e01bbef5 01-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Make CommandLine prefix error output with the name of the program.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16129 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1e13fd23d34e53b63cb08c0fe54f0857757ec200 13-Aug-2004 Reid Spencer <rspencer@reidspencer.com> 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
69105f33c190621a6b1ad61f925b1a9e6b0512af 04-Aug-2004 Reid Spencer <rspencer@reidspencer.com> Add a --version option for every tool that prints out:
Low Level Virtual Machine ($PACKAGE_NAME) $PACKAGE_VERSION


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15454 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f98cfc716d1916e3400d8980c972f75fe47b9061 18-Jul-2004 Chris Lattner <sabre@nondot.org> Add a workaround for a GCC 3.3.2 bug


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
5114004110d771e2cc838be569207784f2519010 03-Jul-2004 Chris Lattner <sabre@nondot.org> Fix compilation on internix


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
bf455c236001d5424dbda50fd145352f87f11ec1 07-May-2004 Chris Lattner <sabre@nondot.org> Implement the new cl::PositionalEatsArgs flag, refactor code a bit


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
5f65adda508bff0e9f40cf6013469c76fdcb1a09 04-Mar-2004 Alkis Evlogimenos <alkis@evlogimenos.com> Hide variable from other functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2cdd21c2e4d855500dfb53f77aa74da53ccf9de6 14-Dec-2003 Chris Lattner <sabre@nondot.org> Finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b576c94c15af9a440f69d9d03c2afead7971118c 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2d6a2360036cf511af0a06f9720e6a1752779d1c 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Change to use strtoul instead of strtoll.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c86e84bcf38a94d0bcd09e76ff127ee636354bc0 16-Sep-2003 Brian Gaeke <gaeke@uiuc.edu> Add missing apostrophe. It's been bugging me for years.

No really, years.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8566 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
950971dfe6271e85292f73dd6ac105465e4898f7 16-Sep-2003 Misha Brukman <brukman+llvm@gmail.com> Fixed spelling & grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c48ef2ae36e2169872a828a5399ccd1993837915 15-Aug-2003 Brian Gaeke <gaeke@uiuc.edu> 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().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
06b06c5f00acffdab8c59e3dc5baca3eacca172a 15-Aug-2003 Brian Gaeke <gaeke@uiuc.edu> Add support for reading command line arguments from an environment variable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9cf3d4770230238f2f395514bf04e0e64352d261 30-Jul-2003 Chris Lattner <sabre@nondot.org> Add support for "named positional arguments"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1115e0483fc6da16d52382f159005baddf028063 10-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Fixed grammatical error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b5c520bfb6505caaa6ad8468b372530d44c8b253 10-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Lowercase versions of `occurrence' need to be spelled correctly, too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
dd6cb6a43b78732f1a136583ccca4e715bae7d71 10-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> `Occurrence' has no `a' and the `r' is doubled.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d2a6fc397ee982936dee7dd5692b1481bcd9fe8f 28-Jun-2003 Chris Lattner <sabre@nondot.org> Add support for 'unsigned' command line arguments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
72fb8e50820f6fcccae3a63935653ccd7b9ecf84 22-May-2003 Chris Lattner <sabre@nondot.org> Add new CommaSeparated option modifier


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6294 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
ca6433f233b7ed432916ba07976f9a4e9e0767b0 22-May-2003 Chris Lattner <sabre@nondot.org> Destroy using declarations


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9b14eb5a781cea80ade37ab9462ba0721cbdbb9c 07-Aug-2002 Chris Lattner <sabre@nondot.org> Simplify writing custom parsers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3256 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
b490c20b3891717f95804517d47d269bbcf3dc03 02-Aug-2002 Chris Lattner <sabre@nondot.org> Fix lli with no arguments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d16714b5ed076d0c1d14543098c1e9b90fd92a38 31-Jul-2002 Chris Lattner <sabre@nondot.org> Fix bug that was causing problems for lli


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3176 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
e8e258b1a7e54a77c802e8b309d0a60a62d1a00d 29-Jul-2002 Chris Lattner <sabre@nondot.org> * Fix assertion failure caused by command line argument getting removed after
the map was freed.
* Cleanup code a bit


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3121 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
99b7c1a9ead9be905d5ba97a5c4da1b066c07fe3 27-Jul-2002 Chris Lattner <sabre@nondot.org> Remove needless #include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
0c0edf8afc35a42b15a24ebb5fa5f3fc674290ae 25-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
faba809472e36fbb28394da6ed907d2652ca8b83 24-Jul-2002 Chris Lattner <sabre@nondot.org> Fix a bug exposed by lli


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3049 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
aa852bbb503571d1198856fa4c6e099d7625e3b3 23-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
54ec7aed89e4a5d8cc11c36999d88012cbfcc18a 22-Jul-2002 Chris Lattner <sabre@nondot.org> Minor bugfix, prevents error in LLI


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2989 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
331de23705a719514e37c211f327379688f81b0d 22-Jul-2002 Chris Lattner <sabre@nondot.org> Checkin CommandLine 2.0


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
71fb71628ab3f5280a7f4602f52ba365bca31f29 22-May-2002 Chris Lattner <sabre@nondot.org> 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
c6f3ae5c66c8e0dab6a2bd9601d0e253ef9ba794 29-Apr-2002 Chris Lattner <sabre@nondot.org> Eliminate duplicate or unneccesary #include's


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
7f1576f0424542d6162c1cedc14629e4cbc3e80a 25-Feb-2002 Chris Lattner <sabre@nondot.org> 64 bit clean now


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1789 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
9c9be48b8396e7244e47d2af8890da8eec71c72d 31-Jan-2002 Chris Lattner <sabre@nondot.org> If an invalid alternative is listed for an argument, print the valid options


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
697954c15da58bd8b186dbafdedd8b06db770201 20-Jan-2002 Chris Lattner <sabre@nondot.org> Changes to build successfully with GCC 3.02


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
cee8f9ae67104576b2028125b56e9ba4856a1d66 27-Nov-2001 Chris Lattner <sabre@nondot.org> Create a new #include "Support/..." directory structure to move things
from "llvm/Support/..." that are not llvm dependant.

Move files and fix #includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f78032fe064bdd2b9a19b875261747b7d0a27a73 26-Nov-2001 Chris Lattner <sabre@nondot.org> * 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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
caccd761a6320d9068a44198b9e1b6c3659f8bb5 27-Oct-2001 Chris Lattner <sabre@nondot.org> Provide option to enable eating of all arguments following a specific one


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
f038acbee21cfed998451aedd00a81901d299516 24-Oct-2001 Chris Lattner <sabre@nondot.org> Clean up error handling a bit. Add / as a seperator for command line arguments. This is just a big old ugly hack.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
d215fd1f5610033fbe704c975805790530262d26 13-Oct-2001 Chris Lattner <sabre@nondot.org> Add StringList support


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@766 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
3805e4ccfa6b908c5035256ea6ee51e219f029db 25-Jul-2001 Chris Lattner <sabre@nondot.org> Fixed a bug exposed when doing something like this: <program> -notanoption --help


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
2233a07b686ead865b0bfeed5a50d178d05f9549 24-Jul-2001 Chris Lattner <sabre@nondot.org> Doh! Wrong Optional flag. :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
03fe1bd149b21855098e9cc9f959c8e8ca80693c 24-Jul-2001 Chris Lattner <sabre@nondot.org> Add a comment indicating that there is documentation of the library


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
dc4693dbcf164ec404a3a91c67cf1dbe5f45a8e5 24-Jul-2001 Chris Lattner <sabre@nondot.org> Minor changes to implementation of CommandLine library to let users override
options forced by different subclasses of Option


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
1e78f36127fb0e405d2cf893e2ce3381300a667b 23-Jul-2001 Chris Lattner <sabre@nondot.org> CommandLine library cleanup. No longer use getValue/setValue, instead, just treat the commandline
args as the objects they represent and the "right thing" will happen


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
57dbb3ad63b6a0e77798edb156ef43daa3bfc67e 23-Jul-2001 Chris Lattner <sabre@nondot.org> Moved inline/llvm/Tools/* to include/llvm/Support/*


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp
dbab15a2c9accc0242109881e1632137cb97dbc9 23-Jul-2001 Chris Lattner <sabre@nondot.org> Initial checkin


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/CommandLine.cpp