blob: b7f2b6ff347a44c35f7998aad0f7b27445011d3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//===-- PrintVersion.cpp --------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "klee/Internal/Support/PrintVersion.h"
#include "klee/Config/config.h"
#include "klee/Config/Version.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/CommandLine.h"
#include "klee/Config/CompileTimeInfo.h"
#if LLVM_VERSION_CODE >= LLVM_VERSION(6, 0)
void klee::printVersion(llvm::raw_ostream &OS)
#else
void klee::printVersion()
#endif
{
#if LLVM_VERSION_CODE < LLVM_VERSION(6, 0)
llvm::raw_ostream &OS = llvm::outs();
#endif
OS << PACKAGE_STRING " (" PACKAGE_URL ")\n";
#ifdef KLEE_ENABLE_TIMESTAMP
OS << " Built " __DATE__ " (" __TIME__ ")\n";
#endif
OS << " Build mode: " << KLEE_BUILD_MODE "\n";
OS << " Build revision: ";
#ifdef KLEE_BUILD_REVISION
OS << KLEE_BUILD_REVISION "\n";
#else
OS << "unknown\n";
#endif
// Show LLVM version information
OS << "\n";
llvm::cl::PrintVersionMessage();
}
|