[ORC] Re-apply r322913 with a fix for a read-after-free error.
authorLang Hames <lhames@gmail.com>
Fri, 19 Jan 2018 22:24:13 +0000 (22:24 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 19 Jan 2018 22:24:13 +0000 (22:24 +0000)
commitb72f48452c528daf3b9fb7604a640e4e14e3f405
treeed672be7baa3b1306f83f9f64f2b35d5fd18b6c8
parent8b2faeed022dc14b838416e12754d8d9c3074195
[ORC] Re-apply r322913 with a fix for a read-after-free error.

ExternalSymbolMap now stores the string key (rather than using a StringRef),
as the object file backing the key may be removed at any time.

llvm-svn: 323001
17 files changed:
llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
llvm/include/llvm/ExecutionEngine/JITSymbol.h
llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
llvm/include/llvm/ExecutionEngine/Orc/LambdaResolver.h
llvm/include/llvm/ExecutionEngine/Orc/NullResolver.h
llvm/include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h
llvm/include/llvm/ExecutionEngine/RTDyldMemoryManager.h
llvm/lib/ExecutionEngine/ExecutionEngine.cpp
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
llvm/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
llvm/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
llvm/tools/lli/RemoteJITUtils.h