diff options
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/lib/Utils/CommandLineOpts.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp index 6aa1b777e4a7..cdf75ac686a4 100644 --- a/bolt/lib/Utils/CommandLineOpts.cpp +++ b/bolt/lib/Utils/CommandLineOpts.cpp @@ -17,7 +17,12 @@ using namespace llvm; namespace llvm { namespace bolt { -const char *BoltRevision = LLVM_REVISION; +const char *BoltRevision = +#ifdef LLVM_REVISION + LLVM_REVISION; +#else + "<unknown>"; +#endif } } |