[BOLT] Check if LLVM_REVISION is defined
authorAmir Ayupov <aaupov@fb.com>
Fri, 15 Apr 2022 13:13:19 +0000 (06:13 -0700)
committerAmir Ayupov <aaupov@fb.com>
Fri, 15 Apr 2022 13:33:14 +0000 (06:33 -0700)
commit4f277f28ab88bb96c8da1da96dda11bab17a3da7
tree2e320b01745f429e44099c7929a1346887fb9388
parent57a4f9bd493bca0dc78b16951c7d3f3fadfbc2f2
[BOLT] Check if LLVM_REVISION is defined

Handle the case where LLVM_REVISION is undefined (due to LLVM_APPEND_VC_REV=OFF
or otherwise) by setting "<unknown>" value as before D123549.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D123852
bolt/lib/Utils/CommandLineOpts.cpp