Emit now takes a std::unique_ptr<MaterializationResponsibility> instead
of a MaterializationResponsibility directly.
This should fix:
http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-standalone/
LLVM_DEBUG(dbgs() << "Nudged " << Count << " new functions into discovery\n");
}
-void ThinLtoInstrumentationLayer::emit(MaterializationResponsibility R,
- ThreadSafeModule TSM) {
+void ThinLtoInstrumentationLayer::emit(
+ std::unique_ptr<MaterializationResponsibility> R, ThreadSafeModule TSM) {
TSM.withModuleDo([this](Module &M) {
std::vector<Function *> FunctionsToInstrument;
~ThinLtoInstrumentationLayer() override;
- void emit(MaterializationResponsibility R, ThreadSafeModule TSM) override;
+ void emit(std::unique_ptr<MaterializationResponsibility> R,
+ ThreadSafeModule TSM) override;
unsigned reserveDiscoveryFlags(unsigned Count);
void registerDiscoveryFlagOwners(std::vector<GlobalValue::GUID> Guids,