diff options
| author | Martin Nowack <martin.nowack@gmail.com> | 2018-05-15 15:12:12 +0100 |
|---|---|---|
| committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-07-04 15:13:02 +0100 |
| commit | ef90f1e219fec27a3d594158ae5f380a9e9a2f37 (patch) | |
| tree | 0a02b5da762b4bc59f7f6bd2453a2a6591f00062 /lib/Core/Executor.h | |
| parent | 6803c37be83f0c97c95870a18cb230e135a131c9 (diff) | |
| download | klee-ef90f1e219fec27a3d594158ae5f380a9e9a2f37.tar.gz | |
Reorder linking and optimizations
Link intrinsic library before executing optimizations. This makes sure that any optimization run by KLEE on the module is executed for the intrinsic library as well. Support .ll files as input for KLEE as well.
Diffstat (limited to 'lib/Core/Executor.h')
| -rw-r--r-- | lib/Core/Executor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index a0174ab7..6ad5e987 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -120,7 +120,7 @@ private: class TimerInfo; - KModule *kmodule; + std::unique_ptr<KModule> kmodule; InterpreterHandler *interpreterHandler; Searcher *searcher; @@ -491,8 +491,8 @@ public: replayPosition = 0; } - virtual const llvm::Module * - setModule(llvm::Module *module, const ModuleOptions &opts); + llvm::Module *setModule(std::vector<std::unique_ptr<llvm::Module>> &modules, + const ModuleOptions &opts) override; virtual void useSeeds(const std::vector<struct KTest *> *seeds) { usingSeeds = seeds; |
