From 559586b6e59a75630b32d89133d442b4d2e11e0b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 12 Nov 2014 02:23:37 +0000 Subject: [PATCH] Use a function_ref now that it works (r221753). llvm-svn: 221756 --- llvm/include/llvm/Linker/Linker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Linker/Linker.h b/llvm/include/llvm/Linker/Linker.h index d1c02c2..4d1a32d 100644 --- a/llvm/include/llvm/Linker/Linker.h +++ b/llvm/include/llvm/Linker/Linker.h @@ -11,8 +11,8 @@ #define LLVM_LINKER_LINKER_H #include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/STLExtras.h" -#include namespace llvm { class DiagnosticInfo; @@ -25,7 +25,7 @@ class StructType; /// something with it after the linking. class Linker { public: - typedef std::function + typedef function_ref DiagnosticHandlerFunction; Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler); -- 2.7.4