From d0692a28689fcf15a9737b67f415fdbb9e13dcc5 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 12 Nov 2014 03:17:33 +0000 Subject: [PATCH] Revert "Use a function_ref now that it works (r221753)." This reverts commit r221756. David Blaikie pointed out it was unsafe. llvm-svn: 221761 --- 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 4d1a32d..d1c02c2 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 function_ref + typedef std::function DiagnosticHandlerFunction; Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler); -- 2.7.4