[Orc] Make the makeStub function propagate argument attributes onto the call to
authorLang Hames <lhames@gmail.com>
Mon, 20 Apr 2015 20:41:45 +0000 (20:41 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 20 Apr 2015 20:41:45 +0000 (20:41 +0000)
commitdc4260db2a8df312268771fdfb8e9db5cd522508
treeb819bdff87f9fd9548db9c63db5c65b08f7287c7
parent1ff46f2060c7d4de3dde8851dbd9deba66232070
[Orc] Make the makeStub function propagate argument attributes onto the call to
the function body.

This is necessary for correctness when lazily compiling.

Also, flesh out the Orc unit test infrastructure slightly, and add a unit test
for this.

llvm-svn: 235347
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp [new file with mode: 0644]
llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.cpp [new file with mode: 0644]
llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h [new file with mode: 0644]