mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 15:01:57 +00:00
BitcodeWriter: Removing unnecessary std::function in favor of template
More cleanup from post-commit discussion on r304516 llvm-svn: 304579
This commit is contained in:
1 parent
b933ad3a77
commit
358c012db2
1 file changed
+2
-1
@@ -351,7 +351,8 @@ public:
|
||||
/// Calls the callback for each value GUID and summary to be written to
|
||||
/// bitcode. This hides the details of whether they are being pulled from the
|
||||
/// entire index or just those in a provided ModuleToSummariesForIndex map.
|
||||
void forEachSummary(std::function<void(GVInfo)> Callback) {
|
||||
template<typename Functor>
|
||||
void forEachSummary(Functor Callback) {
|
||||
if (ModuleToSummariesForIndex) {
|
||||
for (auto &M : *ModuleToSummariesForIndex)
|
||||
for (auto &Summary : M.second)
|
||||
|
||||
Reference in new issue
Block a user