Use a function_ref now that it works (r221753).
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Nov 2014 02:23:37 +0000 (02:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Nov 2014 02:23:37 +0000 (02:23 +0000)
llvm-svn: 221756

llvm/include/llvm/Linker/Linker.h

index d1c02c2..4d1a32d 100644 (file)
@@ -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);