diff options
author | Frank Busse <bb0xfb@gmail.com> | 2021-12-15 16:20:29 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2022-03-17 22:59:26 +0000 |
commit | d8553f3cec042b5af9e21c268cb14ee8f7b30083 (patch) | |
tree | d8545f09d6ae508df5a8d19ad30b6dbd6f1e4182 /lib/Module/InstructionInfoTable.cpp | |
parent | 8cab09eb98d06d488e036ceec9f4b16090502297 (diff) | |
download | klee-d8553f3cec042b5af9e21c268cb14ee8f7b30083.tar.gz |
remove LLVM < 6 from sources
Diffstat (limited to 'lib/Module/InstructionInfoTable.cpp')
-rw-r--r-- | lib/Module/InstructionInfoTable.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Module/InstructionInfoTable.cpp b/lib/Module/InstructionInfoTable.cpp index 05a1f7b9..3c972edc 100644 --- a/lib/Module/InstructionInfoTable.cpp +++ b/lib/Module/InstructionInfoTable.cpp @@ -112,11 +112,8 @@ public: std::unique_ptr<FunctionInfo> getFunctionInfo(const llvm::Function &Func) { auto asmLine = lineTable.at(reinterpret_cast<std::uintptr_t>(&Func)); -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 9) auto dsub = Func.getSubprogram(); -#else - auto dsub = llvm::getDISubprogram(&Func); -#endif + if (dsub != nullptr) { auto path = dsub->getFilename(); return std::make_unique<FunctionInfo>(FunctionInfo( |