summaryrefslogtreecommitdiffstats
path: root/lld/lib
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-07-17 21:33:21 +0000
committerRui Ueyama <ruiu@google.com>2014-07-17 21:33:21 +0000
commit9ec7e659d869b93562f30fbb8c8348816f8dfa32 (patch)
treeebcb4b8c1864e67fe9bd4d52377c1ab8e7911efa /lld/lib
parentd5ba2a699480906d81387473f5b0343209bc0168 (diff)
downloadbcm5719-llvm-9ec7e659d869b93562f30fbb8c8348816f8dfa32.tar.gz
bcm5719-llvm-9ec7e659d869b93562f30fbb8c8348816f8dfa32.zip
Remove all uses of llvm::function_ref from LLD.
llvm-svn: 213313
Diffstat (limited to 'lld/lib')
-rw-r--r--lld/lib/Core/InputGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp
index d086eb63e49..9a76e93fc09 100644
--- a/lld/lib/Core/InputGraph.cpp
+++ b/lld/lib/Core/InputGraph.cpp
@@ -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);
}
OpenPOWER on IntegriCloud