diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-11 21:25:48 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-10-11 21:25:48 +0000 |
commit | 528f6d787b1a847e61eb2f1114559f423fdeb68c (patch) | |
tree | 7570a5af47ba322b7fa97459017f88717c4ad35c /tools/lli/RemoteMemoryManager.cpp | |
parent | b19b474de95112f7e0fc15ab87ad284889d19cd9 (diff) | |
download | llvm-528f6d787b1a847e61eb2f1114559f423fdeb68c.tar.gz llvm-528f6d787b1a847e61eb2f1114559f423fdeb68c.tar.bz2 llvm-528f6d787b1a847e61eb2f1114559f423fdeb68c.tar.xz |
Adding multiple object support to MCJIT EH frame handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/RemoteMemoryManager.cpp')
-rw-r--r-- | tools/lli/RemoteMemoryManager.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/lli/RemoteMemoryManager.cpp b/tools/lli/RemoteMemoryManager.cpp index 8ccfde8fc7..04fc40e426 100644 --- a/tools/lli/RemoteMemoryManager.cpp +++ b/tools/lli/RemoteMemoryManager.cpp @@ -204,27 +204,3 @@ uint8_t *RemoteMemoryManager::allocateGlobal(uintptr_t Size, unsigned Alignment) void RemoteMemoryManager::deallocateFunctionBody(void *Body) { llvm_unreachable("Unexpected!"); } - -static int jit_noop() { - return 0; -} - -void *RemoteMemoryManager::getPointerToNamedFunction(const std::string &Name, - bool AbortOnFailure) { - // We should not invoke parent's ctors/dtors from generated main()! - // On Mingw and Cygwin, the symbol __main is resolved to - // callee's(eg. tools/lli) one, to invoke wrong duplicated ctors - // (and register wrong callee's dtors with atexit(3)). - // We expect ExecutionEngine::runStaticConstructorsDestructors() - // is called before ExecutionEngine::runFunctionAsMain() is called. - if (Name == "__main") return (void*)(intptr_t)&jit_noop; - - // FIXME: Would it be responsible to provide GOT? - if (AbortOnFailure) { - if (Name == "_GLOBAL_OFFSET_TABLE_") - report_fatal_error("Program used external function '" + Name + - "' which could not be resolved!"); - } - - return NULL; -} |