[ORC] Verify modules when running LLLazyJIT in LLI, and deal with fallout.
authorLang Hames <lhames@gmail.com>
Mon, 2 Jul 2018 22:30:18 +0000 (22:30 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 2 Jul 2018 22:30:18 +0000 (22:30 +0000)
commitadae9bfa243713a781ecad6e07759e57dc2c7f52
tree22a5695b8cf1a1ecc028edcdccc66fd173895afa
parent9f02a94dad81f6f2adb775a1b34c9c30e2b9887f
[ORC] Verify modules when running LLLazyJIT in LLI, and deal with fallout.

The verifier identified several modules that were broken due to incorrect
linkage on declarations. To fix this, CompileOnDemandLayer2::extractFunction
has been updated to change decls to external linkage.

llvm-svn: 336150
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
llvm/tools/lli/lli.cpp