[llvm] r221756 - Use a function_ref now that it works (r221753).

Rafael Espindola rafael.espindola at gmail.com
Tue Nov 11 18:23:37 PST 2014


Author: rafael
Date: Tue Nov 11 20:23:37 2014
New Revision: 221756

URL: http://llvm.org/viewvc/llvm-project?rev=221756&view=rev
Log:
Use a function_ref now that it works (r221753).

Modified:
    llvm/trunk/include/llvm/Linker/Linker.h

Modified: llvm/trunk/include/llvm/Linker/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker/Linker.h?rev=221756&r1=221755&r2=221756&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Linker/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker/Linker.h Tue Nov 11 20:23:37 2014
@@ -11,8 +11,8 @@
 #define LLVM_LINKER_LINKER_H
 
 #include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/ADT/STLExtras.h"
 
-#include <functional>
 
 namespace llvm {
 class DiagnosticInfo;
@@ -25,7 +25,7 @@ class StructType;
 /// something with it after the linking.
 class Linker {
   public:
-    typedef std::function<void(const DiagnosticInfo &)>
+    typedef function_ref<void(const DiagnosticInfo &)>
         DiagnosticHandlerFunction;
 
     Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);





More information about the llvm-commits mailing list