[ThinLTO] Helper for performing renaming/promotion on a module
[oota-llvm.git] / include / llvm / Linker / Linker.h
index f0c8ad979ab68e36de4f8f1cb91d160c4c5358de..aa4300942947b133db7a9ea98d27aeae4e966a57 100644 (file)
@@ -99,6 +99,13 @@ private:
   DiagnosticHandlerFunction DiagnosticHandler;
 };
 
+/// Create a new module with exported local functions renamed and promoted
+/// for ThinLTO.
+std::unique_ptr<Module>
+renameModuleForThinLTO(std::unique_ptr<Module> &M,
+                       const FunctionInfoIndex *Index,
+                       DiagnosticHandlerFunction DiagnosticHandler);
+
 } // End llvm namespace
 
 #endif