From 930ae7d06fc1d8cc3117397cb3fd168a0a1090b7 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Sat, 23 Apr 2011 19:22:22 +0000 Subject: Patch by arrowdodger (http://keeda.stanford.edu/pipermail/klee-dev/2011-April/000617.html) for compiling KLEE with the latest LLVM changes. Tested against LLVM 2.7 and 2.8. The AsmAddresses test fails in 2.8 unless assertions are explicitely enabled (--enable-assertions). git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@130065 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Time.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Support/Time.cpp') diff --git a/lib/Support/Time.cpp b/lib/Support/Time.cpp index 0ec8d9d7..ebcc390a 100644 --- a/lib/Support/Time.cpp +++ b/lib/Support/Time.cpp @@ -7,9 +7,14 @@ // //===----------------------------------------------------------------------===// +#include "klee/Config/config.h" #include "klee/Internal/System/Time.h" +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 9) #include "llvm/System/Process.h" +#else +#include "llvm/Support/Process.h" +#endif using namespace llvm; using namespace klee; -- cgit 1.4.1