aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2020-12-05 12:52:38 +0100
committerJonas Hahnfeld <hahnjo@hahnjo.de>2020-12-16 17:33:20 +0100
commit6e890ec7beb0874464a0af9f84e41a987f968b23 (patch)
tree12f97008bbc4e1b1d5fd4baa73f113482272c232 /llvm/lib/CodeGen/MachineScheduler.cpp
parent07751310580fa5b7b94b6efa85d7964af0f699a6 (diff)
downloadllvm-6e890ec7beb0874464a0af9f84e41a987f968b23.zip
llvm-6e890ec7beb0874464a0af9f84e41a987f968b23.tar.gz
llvm-6e890ec7beb0874464a0af9f84e41a987f968b23.tar.bz2
[CMake] Avoid __FakeVCSRevision.h with no git repository
Set the return variable to "" in find_first_existing_vc_file to say that there is a repository, but no file to depend on. This works transparently for all other callers that handle undefinedness and equality to an empty string the same way. Use the knowledge to avoid depending on __FakeVCSRevision.h if there is no git repository at all (for example when building a release) as there is no point in regenerating an empty VCSRevision.h. Differential Revision: https://reviews.llvm.org/D92718
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions