[ORC] Rename MaterializationResponsibility::delegate to replace and add a new
authorLang Hames <lhames@gmail.com>
Mon, 9 Jul 2018 20:54:36 +0000 (20:54 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 9 Jul 2018 20:54:36 +0000 (20:54 +0000)
commitf07dad3d8f8dd854131751eb5fb0fb97a478d85a
tree25a4e1bee64d6c720a5c9daedeffabd0b52cbc13
parent017c68c12208372c8f5ef7ac2fe92a4512bca1c0
[ORC] Rename MaterializationResponsibility::delegate to replace and add a new
delegate method (and unit test).

The name 'replace' better captures what the old delegate method did: it
returned materialization responsibility for a set of symbols to the VSO.

The new delegate method delegates responsibility for a set of symbols to a new
MaterializationResponsibility instance. This can be used to split responsibility
between multiple threads, or multiple materialization methods.

llvm-svn: 336603
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp