about summary refs log tree commit diff homepage
path: root/include/klee/Config/Version.h
blob: c1fdbb97d53db4aa6f6fb7a26ad2c406c98c74b1 (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
//===-- Version.h -----------------------------------------------*- C++ -*-===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef KLEE_CONFIG_VERSION_H
#define KLEE_CONFIG_VERSION_H

#include "klee/Config/config.h"

#define LLVM_VERSION(major, minor) (((major) << 8) | (minor))
#define LLVM_VERSION_CODE LLVM_VERSION(LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR)

#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 0)
#  define LLVM_TYPE_Q
#else
#  define LLVM_TYPE_Q const
#endif

#if LLVM_VERSION_CODE >= LLVM_VERSION(4, 0)
#  define KLEE_LLVM_CL_VAL_END
#else
#  define KLEE_LLVM_CL_VAL_END , clEnumValEnd
#endif

#endif