[Orc] Teach the CompileOnDemand layer to clone aliases.
authorLang Hames <lhames@gmail.com>
Tue, 6 Oct 2015 22:55:05 +0000 (22:55 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 6 Oct 2015 22:55:05 +0000 (22:55 +0000)
commit3ce6a234699f2cb088b9d666c6e5021af7e85d54
treef21e0b5169732a647c1121d5c81133808f59d58c
parent0ea7b26ee30f82fc2056e9a53422a5675294a8e6
[Orc] Teach the CompileOnDemand layer to clone aliases.

This allows modules containing aliases to be lazily jit'd. Previously these
failed with missing symbol errors because the aliases weren't cloned from the
original module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249481 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
test/ExecutionEngine/OrcLazy/global_aliases.ll [new file with mode: 0644]