diff options
author | Tim Northover <Tim.Northover@arm.com> | 2012-09-20 08:46:30 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2012-09-20 08:46:30 +0000 |
commit | 572d0698d26dbea4ae18eb949f2a2839b149b47e (patch) | |
tree | 1f64efe81c1140cde2f7343a2db1122035ac0ee2 /llvm/tools | |
parent | 4aa6a010d2e68712a185f6b2f4111307dfe5401e (diff) | |
download | bcm5719-llvm-572d0698d26dbea4ae18eb949f2a2839b149b47e.tar.gz bcm5719-llvm-572d0698d26dbea4ae18eb949f2a2839b149b47e.zip |
Make sure lli compiles all code before invalidating instruction caches.
Patch from Amara Emerson.
llvm-svn: 164296
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/lli/lli.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 4004b6c4d40..c5645ec6015 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -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(); |