forked from OSchip/llvm-project
Make sure lli compiles all code before invalidating instruction caches.
Patch from Amara Emerson. llvm-svn: 164296
This commit is contained in:
parent
4aa6a010d2
commit
572d0698d2
|
@ -656,6 +656,9 @@ int main(int argc, char **argv, char * const *envp) {
|
|||
|
||||
Target.stop();
|
||||
} else {
|
||||
// Trigger compilation separately so code regions that need to be
|
||||
// invalidated will be known.
|
||||
(void)EE->getPointerToFunction(EntryFn);
|
||||
// Clear instruction cache before code will be executed.
|
||||
if (JMM)
|
||||
static_cast<LLIMCJITMemoryManager*>(JMM)->invalidateInstructionCache();
|
||||
|
|
Loading…
Reference in New Issue