git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221756
91177308-0d34-0410-b5e6-
96231b3b80d8
#define LLVM_LINKER_LINKER_H
#include "llvm/ADT/SmallPtrSet.h"
#define LLVM_LINKER_LINKER_H
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/ADT/STLExtras.h"
namespace llvm {
class DiagnosticInfo;
namespace llvm {
class DiagnosticInfo;
/// something with it after the linking.
class Linker {
public:
/// 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);
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);