klee
PrintVersion.cpp
Go to the documentation of this file.
1//===-- PrintVersion.cpp --------------------------------------------------===//
2//
3// The KLEE Symbolic Virtual Machine
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
11#include "klee/Config/config.h"
12#include "klee/Config/Version.h"
13#include "llvm/Support/raw_ostream.h"
14#include "llvm/Support/CommandLine.h"
15
16#include "klee/Config/CompileTimeInfo.h"
17
18void klee::printVersion(llvm::raw_ostream &OS) {
19 OS << PACKAGE_STRING " (" PACKAGE_URL ")\n";
20#ifdef KLEE_ENABLE_TIMESTAMP
21 OS << " Built " __DATE__ " (" __TIME__ ")\n";
22#endif
23 OS << " Build mode: " << KLEE_BUILD_MODE "\n";
24 OS << " Build revision: ";
25#ifdef KLEE_BUILD_REVISION
26 OS << KLEE_BUILD_REVISION "\n";
27#else
28 OS << "unknown\n";
29#endif
30 // Show LLVM version information
31 OS << "\n";
32 llvm::cl::PrintVersionMessage();
33}
void printVersion(llvm::raw_ostream &OS)