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
This commit is contained in:
Rafael Espindola 2014-11-12 02:23:37 +00:00
parent a48b83ebfd
commit 07ac2e2da9

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);