[PATCH] D123852: [BOLT] Check if LLVM_REVISION is defined

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 06:33:30 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4f277f28ab88: [BOLT] Check if LLVM_REVISION is defined (authored by Amir).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123852/new/

https://reviews.llvm.org/D123852

Files:
  bolt/lib/Utils/CommandLineOpts.cpp


Index: bolt/lib/Utils/CommandLineOpts.cpp
===================================================================
--- bolt/lib/Utils/CommandLineOpts.cpp
+++ bolt/lib/Utils/CommandLineOpts.cpp
@@ -17,7 +17,12 @@
 
 namespace llvm {
 namespace bolt {
-const char *BoltRevision = LLVM_REVISION;
+const char *BoltRevision =
+#ifdef LLVM_REVISION
+    LLVM_REVISION;
+#else
+    "<unknown>";
+#endif
 }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123852.423081.patch
Type: text/x-patch
Size: 399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220415/411e7383/attachment.bin>


More information about the llvm-commits mailing list