diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index d93bd44de52fe..f1dce5d7904f9 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -182,14 +182,7 @@ static cl::opt CtxprofMoveRootsToOwnModule( "their own module."), cl::Hidden, cl::init(false)); -cl::list MoveSymbolGUID( - "thinlto-move-symbols", - cl::desc( - "Move the symbols with the given name. This will delete these symbols " - "wherever they are originally defined, and make sure their " - "linkage is External where they are imported. It is meant to be " - "used with the name of contextual profiling roots."), - cl::Hidden); +extern cl::list MoveSymbolGUID; namespace llvm { extern cl::opt EnableMemProfContextDisambiguation; diff --git a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp index 81e461e28df17..3bbe875bbe9e5 100644 --- a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp +++ b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp @@ -24,7 +24,14 @@ static cl::opt UseSourceFilenameForPromotedLocals( "This requires that the source filename has a unique name / " "path to avoid name collisions.")); -extern cl::list MoveSymbolGUID; +cl::list MoveSymbolGUID( + "thinlto-move-symbols", + cl::desc( + "Move the symbols with the given name. This will delete these symbols " + "wherever they are originally defined, and make sure their " + "linkage is External where they are imported. It is meant to be " + "used with the name of contextual profiling roots."), + cl::Hidden); FunctionImportGlobalProcessing::FunctionImportGlobalProcessing( Module &M, const ModuleSummaryIndex &Index,