projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ba2a6
)
Remove all uses of llvm::function_ref from LLD.
author
Rui Ueyama
<ruiu@google.com>
Thu, 17 Jul 2014 21:33:21 +0000
(21:33 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Thu, 17 Jul 2014 21:33:21 +0000
(21:33 +0000)
llvm-svn: 213313
lld/lib/Core/InputGraph.cpp
patch
|
blob
|
history
diff --git
a/lld/lib/Core/InputGraph.cpp
b/lld/lib/Core/InputGraph.cpp
index
d086eb6
..
9a76e93
100644
(file)
--- 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);
}