From 9ec7e659d869b93562f30fbb8c8348816f8dfa32 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 17 Jul 2014 21:33:21 +0000 Subject: [PATCH] Remove all uses of llvm::function_ref from LLD. llvm-svn: 213313 --- lld/lib/Core/InputGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp index d086eb6..9a76e93 100644 --- a/lld/lib/Core/InputGraph.cpp +++ b/lld/lib/Core/InputGraph.cpp @@ -23,7 +23,7 @@ ErrorOr InputGraph::getNextFile() { if (_currentInputElement) { ErrorOr next = _currentInputElement->getNextFile(); if (next.getError() != InputGraphError::no_more_files) { - for (llvm::function_ref observer : _observers) + for (const std::function &observer : _observers) observer(&next.get()); return std::move(next); } -- 2.7.4