From bf6df4192e9404432ff8c787475b352d475ceb85 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 5 Dec 2013 21:48:38 +0100 Subject: Deprecate LLVM 2.8 and lower --- lib/Module/KModule.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'lib/Module/KModule.cpp') diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 7b23a9c9..49e6cb50 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -30,9 +30,7 @@ #include "llvm/IR/DataLayout.h" #else #include "llvm/Instructions.h" -#if LLVM_VERSION_CODE >= LLVM_VERSION(2, 7) #include "llvm/LLVMContext.h" -#endif #include "llvm/Module.h" #include "llvm/ValueSymbolTable.h" #if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1) @@ -47,14 +45,8 @@ #include "llvm/Support/CallSite.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" -#if LLVM_VERSION_CODE >= LLVM_VERSION(2, 7) #include "llvm/Support/raw_os_ostream.h" -#endif -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 9) -#include "llvm/System/Path.h" -#else #include "llvm/Support/Path.h" -#endif #include "llvm/Transforms/Scalar.h" #include @@ -435,38 +427,6 @@ void KModule::prepare(const Interpreter::ModuleOptions &opts, std::ostream *os = ih->openOutputFile("assembly.ll"); assert(os && os->good() && "unable to open source output"); -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 6) - // We have an option for this in case the user wants a .ll they - // can compile. - if (NoTruncateSourceLines) { - os << *module; - } else { - bool truncated = false; - std::string string; - llvm::raw_string_ostream rss(string); - rss << *module; - rss.flush(); - const char *position = string.c_str(); - - for (;;) { - const char *end = index(position, '\n'); - if (!end) { - os << position; - break; - } else { - unsigned count = (end - position) + 1; - if (count<255) { - os->write(position, count); - } else { - os->write(position, 254); - os << "\n"; - truncated = true; - } - position = end+1; - } - } - } -#else llvm::raw_os_ostream *ros = new llvm::raw_os_ostream(*os); // We have an option for this in case the user wants a .ll they @@ -498,7 +458,6 @@ void KModule::prepare(const Interpreter::ModuleOptions &opts, } } delete ros; -#endif delete os; } -- cgit 1.4.1 From 10c1cd55ff47d6c55294db3e13c255ae91dea962 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Fri, 6 Dec 2013 09:08:09 +0100 Subject: Remove stoppoint references --- lib/Module/KModule.cpp | 2 -- tools/klee/main.cpp | 1 - 2 files changed, 3 deletions(-) (limited to 'lib/Module/KModule.cpp') diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 49e6cb50..d889b51f 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -105,7 +105,6 @@ KModule::KModule(Module *_module) #else targetData(new DataLayout(module)), #endif - dbgStopPointFn(0), kleeMergeFn(0), infos(0), constantTable(0) { @@ -470,7 +469,6 @@ void KModule::prepare(const Interpreter::ModuleOptions &opts, delete f; } - dbgStopPointFn = module->getFunction("llvm.dbg.stoppoint"); kleeMergeFn = module->getFunction("klee_merge"); /* Build shadow structures */ diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index d864123a..3616bfa6 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -737,7 +737,6 @@ static const char *modelledExternals[] = { "klee_warning_once", "klee_alias_function", "klee_stack_trace", - "llvm.dbg.stoppoint", #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1) "llvm.dbg.declare", "llvm.dbg.value", -- cgit 1.4.1