diff --git a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h --- a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h @@ -56,7 +56,7 @@ /// Destruct this instance. If a multi-threaded instance, waits for all /// compile threads to complete. - ~LLJIT(); + virtual ~LLJIT(); /// Returns the ExecutionSession for this instance. ExecutionSession &getExecutionSession() { return *ES; } @@ -221,10 +221,8 @@ template friend class LLJITBuilderSetters; public: - /// Sets the partition function. - void - setPartitionFunction(CompileOnDemandLayer::PartitionFunction Partition) { + void setPartitionFunction(CompileOnDemandLayer::PartitionFunction Partition) { CODLayer->setPartitionFunction(std::move(Partition)); } @@ -240,7 +238,6 @@ } private: - // Create a single-threaded LLLazyJIT instance. LLLazyJIT(LLLazyJITBuilderState &S, Error &Err);