Fix -Wdeprecated regarding ORC copying ValueMaterializers
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 19 Oct 2015 22:15:55 +0000 (22:15 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 19 Oct 2015 22:15:55 +0000 (22:15 +0000)
commit36d045a51fbe1891f9739f79a0abaed6e7a76a55
treed6407ff34eb156ff2fe8f0b07d9dd4bc26674b21
parent2949a6ae049a27a52053318ab29ab8d2775cc320
Fix -Wdeprecated regarding ORC copying ValueMaterializers

As usual, this is a polymorphic hierarchy without polymorphic ownership,
so simply make the dtor protected non-virtual, protected default copy
ctor/assign, and make derived classes final. The derived classes will
pick up correct default public copy ops (and dtor) implicitly.

(wish I could add -Wdeprecated to the build, but last time I tried it
triggered on some system headers I still need to look into/figure out)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250747 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
include/llvm/Transforms/Utils/ValueMapper.h
lib/Linker/LinkModules.cpp