Revert "Use a function_ref now that it works (r221753)."

This reverts commit r221756.

David Blaikie pointed out it was unsafe.

llvm-svn: 221761
This commit is contained in:
Rafael Espindola 2014-11-12 03:17:33 +00:00
parent 4b0c118713
commit d0692a2868
1 changed files with 2 additions and 2 deletions

View 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 function_ref<void(const DiagnosticInfo &)>
typedef std::function<void(const DiagnosticInfo &)>
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);