Add support to print version.
Details
Diff Detail
Event Timeline
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.".
CMakeLists.txt | ||
---|---|---|
99 | I don't think we need this. It's always https://llvm.org/svn/llvm-project/lld/trunk. | |
include/lld/Config/Version.h | ||
1 | lib/Config/Version.h | |
45 | 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? | |
lib/Config/Version.cpp | ||
1 | lib/Config/Version.cpp. | |
24 | It's always defined, no? | |
32 | Ditto | |
39 | Remove? | |
59 | Ditto | |
lib/Driver/UniversalDriver.cpp | ||
194 | Remove space before :. |
CMakeLists.txt | ||
---|---|---|
99 | Its a standard thing followed by other projects like lldb/clang. | |
include/lld/Config/Version.h | ||
1 | Sure. | |
45 | Same thing the style is followed by clang/lldb as well. so kept it consistent. lldb --version 2>/dev/null | |
lib/Config/Version.cpp | ||
24 | The repository path and the version is empty on windows. Its a TODO. | |
lib/Driver/UniversalDriver.cpp | ||
194 | ok. |
include/lld/Config/Version.h | ||
---|---|---|
1 | The file is an include file and is included by UniversalDriver, I dont think we should keep it in lib. |
Please update the commit message to be more descriptive.
CMakeLists.txt | ||
---|---|---|
99 | But clang doesn't have -repository-version option, no? | |
include/lld/Config/Version.h | ||
1 | What I mean is to update this line to match the path. I should've write "include/lld/Config/Version.h". Sorry. | |
45 | 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
For some reason, arc committed the patch with my old description. I don't have any clue why it did that and didn't use my latest change in the commit description.
I don't think we need this. It's always https://llvm.org/svn/llvm-project/lld/trunk.