Restore "Support for ThinLTO function importing and symbol linking."
[oota-llvm.git] / include / llvm / Object / FunctionIndexObjectFile.h
index 08eff540c94824e224169b960cdfa0c96e556d9d..12057447f5c3f3d2f8ddd3f2cacc993de16ddbf3 100644 (file)
@@ -18,6 +18,7 @@
 
 namespace llvm {
 class FunctionInfoIndex;
+class Module;
 
 namespace object {
 class ObjectFile;
@@ -84,7 +85,8 @@ public:
   /// Return new FunctionIndexObjectFile instance containing parsed function
   /// summary/index.
   static ErrorOr<std::unique_ptr<FunctionIndexObjectFile>>
-  create(MemoryBufferRef Object, LLVMContext &Context, bool IsLazy = false);
+  create(MemoryBufferRef Object, LLVMContext &Context,
+         const Module *ExportingModule = nullptr, bool IsLazy = false);
 
   /// \brief Parse the function summary information for function with the
   /// given name out of the given buffer. Parsed information is