[lld] r213313 - Remove all uses of llvm::function_ref from LLD.
Rui Ueyama
ruiu at google.com
Thu Jul 17 14:33:22 PDT 2014
Author: ruiu
Date: Thu Jul 17 16:33:21 2014
New Revision: 213313
URL: http://llvm.org/viewvc/llvm-project?rev=213313&view=rev
Log:
Remove all uses of llvm::function_ref from LLD.
Modified:
lld/trunk/lib/Core/InputGraph.cpp
Modified: lld/trunk/lib/Core/InputGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/InputGraph.cpp?rev=213313&r1=213312&r2=213313&view=diff
==============================================================================
--- lld/trunk/lib/Core/InputGraph.cpp (original)
+++ lld/trunk/lib/Core/InputGraph.cpp Thu Jul 17 16:33:21 2014
@@ -23,7 +23,7 @@ ErrorOr<File &> InputGraph::getNextFile(
if (_currentInputElement) {
ErrorOr<File &> next = _currentInputElement->getNextFile();
if (next.getError() != InputGraphError::no_more_files) {
- for (llvm::function_ref<void(File *)> observer : _observers)
+ for (const std::function<void(File *)> &observer : _observers)
observer(&next.get());
return std::move(next);
}
More information about the llvm-commits
mailing list