OSDN Git Service

[MCJIT] Call materializeAll on modules before compiling them in MCJIT.
authorLang Hames <lhames@gmail.com>
Tue, 12 Jun 2018 20:43:15 +0000 (20:43 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 12 Jun 2018 20:43:15 +0000 (20:43 +0000)
commite6b73b045ef4b803cf9c86c90b99aea966b17728
treef7e491883f1153f938e0e41e63863d19b32f2ed6
parent0bf3db8810be5465731957b99095ff2544a0eb58
[MCJIT] Call materializeAll on modules before compiling them in MCJIT.

This only affects modules with lazy GVMaterializers attached (usually modules
read off disk using the lazy bitcode reader). For such modules, materializing
before compiling prevents crashes due to missing function bodies /
initializers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/MCJIT/MCJIT.cpp