#ifndef LLVM_FUNCTIONIMPORT_H
#define LLVM_FUNCTIONIMPORT_H
-#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/ADT/StringMap.h"
namespace llvm {
/// The summaries index used to trigger importing.
const FunctionInfoIndex &Index;
- /// Diagnostic will be sent to this handler.
- DiagnosticHandlerFunction DiagnosticHandler;
-
/// Factory function to load a Module for a given identifier
std::function<std::unique_ptr<Module>(StringRef Identifier)> ModuleLoader;
/// Create a Function Importer.
FunctionImporter(
const FunctionInfoIndex &Index,
- DiagnosticHandlerFunction DiagnosticHandler,
std::function<std::unique_ptr<Module>(StringRef Identifier)> ModuleLoader)
- : Index(Index), DiagnosticHandler(DiagnosticHandler),
- ModuleLoader(ModuleLoader) {}
+ : Index(Index), ModuleLoader(ModuleLoader) {}
/// Import functions in Module \p M based on the summary informations.
bool importFunctions(Module &M);