From: Fangrui Song Date: Thu, 24 Nov 2022 07:22:26 +0000 (-0800) Subject: [LTO] Move cl::opt inside llvm:: after D53294 X-Git-Tag: upstream/17.0.6~26665 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f759beaae171d39c04040f6503244e2b7cd1138;p=platform%2Fupstream%2Fllvm.git [LTO] Move cl::opt inside llvm:: after D53294 --- diff --git a/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h b/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h index 203f56d..a55dc31 100644 --- a/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h +++ b/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h @@ -51,9 +51,6 @@ #include #include -/// Enable global value internalization in LTO. -extern llvm::cl::opt EnableLTOInternalization; - namespace llvm { template class ArrayRef; class LLVMContext; @@ -66,6 +63,9 @@ template class ArrayRef; class raw_ostream; class raw_pwrite_stream; +/// Enable global value internalization in LTO. +extern cl::opt EnableLTOInternalization; + //===----------------------------------------------------------------------===// /// C++ class which implements the opaque lto_code_gen_t type. /// diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 81219cd..6e7fde6 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -69,10 +69,12 @@ static cl::opt DumpThinCGSCCs("dump-thin-cg-sccs", cl::init(false), cl::Hidden, cl::desc("Dump the SCCs in the ThinLTO index's callgraph")); +namespace llvm { /// Enable global value internalization in LTO. cl::opt EnableLTOInternalization( "enable-lto-internalization", cl::init(true), cl::Hidden, cl::desc("Enable global value internalization in LTO")); +} // Computes a unique hash for the Module considering the current list of // export/import and other global analysis results.