diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-06-02 18:25:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-06-02 18:25:29 +0000 |
commit | 6cc5d919538b303edd46519588f2a7319999c146 (patch) | |
tree | 0a971ddc5e377bc22f229fb0ce0cb37594b723fb /lib/Bitcode | |
parent | 93d430ca1459ecf1a905a29999838862add06dff (diff) |
BitcodeWriter: Removing unnecessary std::function in favor of template
More cleanup from post-commit discussion on r304516
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 6301ae20924..9043b8c12d2 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -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) |