diff options
author | van Hauser <vh@thc.org> | 2020-08-13 21:46:27 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-13 21:46:27 +0200 |
commit | e9fb5f4cbc9f3514d686ebf813b16829ed73b3da (patch) | |
tree | 43fefed9df0e693d71d6889ce4edc2e3fdade3fe /llvm_mode/cmplog-routines-pass.cc | |
parent | 212bb990b7579831baad70735b767dbaf89e9e89 (diff) | |
download | afl++-e9fb5f4cbc9f3514d686ebf813b16829ed73b3da.tar.gz |
fix for llvm < 11
Diffstat (limited to 'llvm_mode/cmplog-routines-pass.cc')
-rw-r--r-- | llvm_mode/cmplog-routines-pass.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm_mode/cmplog-routines-pass.cc b/llvm_mode/cmplog-routines-pass.cc index 7e5a1ca6..c44f38c4 100644 --- a/llvm_mode/cmplog-routines-pass.cc +++ b/llvm_mode/cmplog-routines-pass.cc @@ -204,7 +204,9 @@ static RegisterStandardPasses RegisterCmpLogRoutinesPass( static RegisterStandardPasses RegisterCmpLogRoutinesPass0( PassManagerBuilder::EP_EnabledOnOptLevel0, registerCmpLogRoutinesPass); +#if LLVM_VERSION_MAJOR >= 11 static RegisterStandardPasses RegisterCmpLogRoutinesPassLTO( PassManagerBuilder::EP_FullLinkTimeOptimizationLast, registerCmpLogRoutinesPass); +#endif |