diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-13 01:26:12 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-13 01:26:12 +0000 |
| commit | 942fa56f406e6c58f532244292abd1128207c2d0 (patch) | |
| tree | bee33ecb35f69669d32aca498f593ee98a6ff6e5 /llvm/test | |
| parent | b411e9ce4de1c0c455633c4bca618dee82d4cf73 (diff) | |
| download | bcm5719-llvm-942fa56f406e6c58f532244292abd1128207c2d0.tar.gz bcm5719-llvm-942fa56f406e6c58f532244292abd1128207c2d0.zip | |
Support: Add a VCSRevision.h header file.
This is a magic header file supported by the build system that provides a
single definition, LLVM_REVISION, containing an LLVM revision identifier,
if available. This functionality previously lived in the LTO library, but
I am moving it out to lib/Support because I want to also start using it in
lib/Object to create the IR symbol table.
This change also fixes a bug where LLVM_REVISION was never actually being
used in lib/LTO because the macro HAS_LLVM_REVISION was never defined (it
was misspelled as HAVE_SVN_VERSION_INC in lib/LTO/CMakeLists.txt, and was
only being defined in a non-existent file Version.cpp).
I also changed the code to use "git rev-parse --git-dir" to locate the .git
directory, instead of looking for it in the LLVM source root directory,
which makes this compatible with monorepos as well as git worktrees.
Differential Revision: https://reviews.llvm.org/D31985
llvm-svn: 300160
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions

