summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachObjectTargetWriter.cpp
diff options
context:
space:
mode:
authorMinSeong Kim <min.s.kim@samsung.com>2017-09-09 14:17:52 +0000
committerMinSeong Kim <min.s.kim@samsung.com>2017-09-09 14:17:52 +0000
commita290cef45d2ed975d76aa9941d91fdb05fab200b (patch)
tree1cbb5ec5ea566000f063af24d1c521c51583129a /llvm/lib/MC/MCMachObjectTargetWriter.cpp
parent59562ecb3572f764535af3c5ceb603b63b15e63c (diff)
downloadbcm5719-llvm-a290cef45d2ed975d76aa9941d91fdb05fab200b.tar.gz
bcm5719-llvm-a290cef45d2ed975d76aa9941d91fdb05fab200b.zip
[CMake] Update GetSVN.cmake to handle repo
Summary: When repo is used with git, 'clang --version' option does not display the correct revision information (i.e. git hash on TOP) as the following: clang version 6.0.0 ---> clang version 6.0.0 (clang version) (llvm version) This is because repo also creates .git/svn folder as git-svn does and this makes repo with git uses "git svn info" command, which is only for git-svn, to retrieve its revision information, making null for the info. To correctly distinguish between git-svn and repo with git, the folder hierarchy to specify for git-svn should be .git/svn/refs as the "git svn info" command depends on the revision data in .git/svn/refs. This patch in turn makes repo with git passes through to the third macro, get_source_info_git, in get_source_info function, resulting in correctly retrieving the revision information for repo with git using "git log ..." command. This patch is tested with git, svn, git-svn, and repo with git. Reviewers: llvm-commits, probinson, rnk Reviewed By: rnk Subscribers: rnk, mehdi_amini, beanz, mgorny Differential Revision: https://reviews.llvm.org/D35532 llvm-svn: 312864
Diffstat (limited to 'llvm/lib/MC/MCMachObjectTargetWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud