From: Rafael Espindola Date: Wed, 12 Nov 2014 02:23:37 +0000 (+0000) Subject: Use a function_ref now that it works (r221753). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=07ac2e2da98d79627823747273bb609a0d5ddbf3;p=oota-llvm.git Use a function_ref now that it works (r221753). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221756 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Linker/Linker.h b/include/llvm/Linker/Linker.h index d1c02c241d5..4d1a32d7810 100644 --- a/include/llvm/Linker/Linker.h +++ b/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);