Add const qualifier for FunctionInfoIndex in ModuleLinker and linkInModule() (NFC)
[oota-llvm.git] / include / llvm / Linker / Linker.h
index 679e60582e807a01c11402c2438ee6b8a1146049..610b1ddf9893b888a7aa98ff784b288cea86d0a8 100644 (file)
@@ -82,7 +82,7 @@ public:
   /// function is imported from the source module.
   /// Returns true on error.
   bool linkInModule(Module *Src, unsigned Flags = Flags::None,
-                    FunctionInfoIndex *Index = nullptr,
+                    const FunctionInfoIndex *Index = nullptr,
                     Function *FuncToImport = nullptr);
 
   /// \brief Set the composite to the passed-in module.