From: Rui Ueyama Date: Thu, 17 Jul 2014 21:33:21 +0000 (+0000) Subject: Remove all uses of llvm::function_ref from LLD. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ec7e659d869b93562f30fbb8c8348816f8dfa32;p=platform%2Fupstream%2Fllvm.git Remove all uses of llvm::function_ref from LLD. llvm-svn: 213313 --- 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); }