Use a function_ref now that it works (r221753).

llvm-svn: 221756
This commit is contained in:
Rafael Espindola 2014-11-12 02:23:37 +00:00
parent cac0088e91
commit 559586b6e5
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 std::function<void(const DiagnosticInfo &)>
typedef function_ref<void(const DiagnosticInfo &)>
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);