[ORC] Update the GlobalMappingLayer interface to fit the error-ized layer
authorLang Hames <lhames@gmail.com>
Thu, 28 Sep 2017 02:17:35 +0000 (02:17 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 28 Sep 2017 02:17:35 +0000 (02:17 +0000)
commitcf771adfeac07feb466a72f5b8b8acb13d50f788
tree48a09839884d13ce1d0cc3b9cb1340eef2c59a6b
parentc5fa1f1f5034408da3ebb087fdc066b6fa98f3bb
[ORC] Update the GlobalMappingLayer interface to fit the error-ized layer
concept.

Add a unit-test to make sure we don't backslide, and tweak the MockBaseLayer
utility to make it easier to test this kind of thing in the future.

llvm-svn: 314374
llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp
llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp
llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h