Add support to print version.
Please write more descriptive commit message for this patch.
Something like "Add -version option to the universal driver to
print out LLD version and SVN revision number.".
I don't think we need this. It's always https://llvm.org/svn/llvm-project/lld/trunk.
We could print out revision number along with the version number like "version 3.5 (r205863)". I don't see the reason to print out repository name. Remove it?
It's always defined, no?
Remove space before :.
Its a standard thing followed by other projects like lldb/clang.
Same thing the style is followed by clang/lldb as well. so kept it consistent.
lldb --version 2>/dev/null
The repository path and the version is empty on windows. Its a TODO.
Please update the commit message to be more descriptive.
But clang doesn't have -repository-version option, no?
What I mean is to update this line to match the path. I should've write "include/lld/Config/Version.h". Sorry.
OK, then let's use the same format as LLDB, instead of adding two options, -version and -repository-version, and remove remove -repository-version.
I have changed the commit message but for some reason, its not appearing as part of the new diff. You will see it when I commit.
This is how it looks just FYI.
Add support to print version. Summary: This adds support in the UniversalDriver to print the linker version and the repository version. Test Plan: A driver test is added Differential Revision: http://reviews.llvm.org/D5641