aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-04-13 15:28:10 +0000
committerJim Grosbach <grosbach@apple.com>2011-04-13 15:28:10 +0000
commit69e813282d4aa078102ce058f8269d0c13260061 (patch)
tree62f0cb772e635a76795cd90b39fa6ddc7e6bcef5 /lib/ExecutionEngine
parentc2475e8ece4adb396ab228c64df995d6def1b7f5 (diff)
downloadexternal_llvm-69e813282d4aa078102ce058f8269d0c13260061.zip
external_llvm-69e813282d4aa078102ce058f8269d0c13260061.tar.gz
external_llvm-69e813282d4aa078102ce058f8269d0c13260061.tar.bz2
MCJIT relocation resolution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/MCJIT/MCJIT.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index 148e0d9..024ed90 100644
--- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -93,6 +93,8 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji,
Buffer.size()));
if (Dyld.loadObject(MB))
report_fatal_error(Dyld.getErrorString());
+ // Resolve any relocations.
+ Dyld.resolveRelocations();
}
MCJIT::~MCJIT() {