Skip to content

Commit

Permalink
Make FunctionMover a final class.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Oct 13, 2016
1 parent e9d002c commit 30aa331
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ static jl_cgval_t emit_cglobal(jl_value_t **args, size_t nargs, jl_codectx_t *ct
}

#ifdef USE_MCJIT
class FunctionMover : public ValueMaterializer
class FunctionMover final : public ValueMaterializer
{
public:
FunctionMover(llvm::Module *dest,llvm::Module *src) :
Expand Down Expand Up @@ -842,11 +842,11 @@ class FunctionMover : public ValueMaterializer
}

#if JL_LLVM_VERSION >= 30900
virtual Value *materialize(Value *V) override
Value *materialize(Value *V) override
#elif JL_LLVM_VERSION >= 30800
virtual Value *materializeDeclFor(Value *V) override
Value *materializeDeclFor(Value *V) override
#else
virtual Value *materializeValueFor (Value *V) override
Value *materializeValueFor (Value *V) override
#endif
{
Function *F = dyn_cast<Function>(V);
Expand Down

0 comments on commit 30aa331

Please sign in to comment.