diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2014-08-20 21:38:46 +0100 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2014-09-14 16:33:00 -0700 |
commit | 28076f1e1992efcc7231ee0763d8a8fad6734a14 (patch) | |
tree | e27baff88872115e9756d6865c7f446289c08ab6 /lib | |
parent | bc433a764ed24848f3c6dae9b90d23695b4b0cec (diff) | |
download | klee-28076f1e1992efcc7231ee0763d8a8fad6734a14.tar.gz |
Fix LLVM3.5 compilation. This is due to r202168
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Module/Optimize.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp index 2aeb9f83..ce43cd96 100644 --- a/lib/Module/Optimize.cpp +++ b/lib/Module/Optimize.cpp @@ -175,9 +175,12 @@ void Optimize(Module* M) { #if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1) // Add an appropriate TargetData instance for this module... addPass(Passes, new TargetData(M)); -#else +#elif LLVM_VERSION_CODE < LLVM_VERSION(3, 5) // Add an appropriate DataLayout instance for this module... addPass(Passes, new DataLayout(M)); +#else + // Add an appropriate DataLayout instance for this module... + addPass(Passes, new DataLayoutPass(M)); #endif // DWD - Run the opt standard pass list as well. |