MCJIT: getPointerToFunction() references target address space.
authorJim Grosbach <grosbach@apple.com>
Wed, 5 Sep 2012 16:50:40 +0000 (16:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 5 Sep 2012 16:50:40 +0000 (16:50 +0000)
commit35ed842773da41779d57d3ed23f440202d0be198
tree1145a37b7143d8a20323ad54629e7cf3d9c14500
parent706f03a35db7029b2dbd2925552eb0d0472dcbb4
MCJIT: getPointerToFunction() references target address space.

Make sure to return a pointer into the target memory, not the local memory.
Often they are the same, but we can't assume that.

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