Skip to content

Commit

Permalink
LLVM < 6 leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuening authored and ccadar committed Mar 17, 2022
1 parent 3ab1012 commit fcb5641
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 44 deletions.
3 changes: 0 additions & 3 deletions cmake/find_llvm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ else()
set(targets_to_return "")
set(created_targets "")
foreach (llvm_lib ${_llvm_libs_list})
# a bug in llvm-config from LLVM 3.9
string(REGEX REPLACE "lib(libLLVM[-.a-zA-Z0-9]+\\.so)\\.so$" "\\1" llvm_lib "${llvm_lib}")

get_filename_component(llvm_lib_file_name "${llvm_lib}" NAME)

string(REGEX REPLACE "^(lib)?(LLVM[-.a-zA-Z0-9]+)\\..+$" "\\2" target_name "${llvm_lib_file_name}")
Expand Down
5 changes: 0 additions & 5 deletions lib/Core/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,12 +778,7 @@ void Executor::initializeGlobalAlias(const llvm::Constant *c) {
}

// resolve aliases in all sub-expressions
#if LLVM_VERSION_CODE >= LLVM_VERSION(4, 0)
for (const auto *op : c->operand_values()) {
#else
for (auto &it : c->operands()) {
const auto *op = &*it;
#endif
initializeGlobalAlias(cast<Constant>(op));
}

Expand Down
33 changes: 0 additions & 33 deletions test/Intrinsics/objectsize.leq49.ll

This file was deleted.

2 changes: 0 additions & 2 deletions test/Intrinsics/objectsize.leq80.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
; REQUIRES: lt-llvm-9.0
; LLVM 5 added parameter "nullunknown" to @llvm.objectsize
; REQUIRES: geq-llvm-5.0
; RUN: %llvmas %s -o=%t.bc
; RUN: rm -rf %t.klee-out
; RUN: %klee -exit-on-error --output-dir=%t.klee-out --optimize=false %t.bc
Expand Down
1 change: 0 additions & 1 deletion test/regression/2019-08-02-missing-switch-default.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; REQUIRES: geq-llvm-3.8
; RUN: rm -rf %t.klee-out
; RUN: llvm-as -f %s -o %t.bc
; RUN: %klee --switch-type=internal --output-dir=%t.klee-out %t.bc
Expand Down

0 comments on commit fcb5641

Please sign in to comment.