forked from OSchip/llvm-project
[Inliner] Move cl::opt inside llvm::
This commit is contained in:
parent
d9ed93da86
commit
fa71c16455
|
@ -23,6 +23,7 @@
|
|||
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats(
|
||||
"inliner-function-import-stats",
|
||||
cl::init(InlinerFunctionImportStatsOpts::No),
|
||||
|
@ -31,6 +32,7 @@ cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats(
|
|||
clEnumValN(InlinerFunctionImportStatsOpts::Verbose, "verbose",
|
||||
"printing of statistics for each inlined function")),
|
||||
cl::Hidden, cl::desc("Enable inliner stats for imported functions"));
|
||||
}
|
||||
|
||||
ImportedFunctionsInliningStatistics::InlineGraphNode &
|
||||
ImportedFunctionsInliningStatistics::createInlineGraphNode(const Function &F) {
|
||||
|
|
|
@ -61,7 +61,9 @@ static cl::opt<bool>
|
|||
cl::desc("If true, annotate inline advisor remarks "
|
||||
"with LTO and pass information."));
|
||||
|
||||
namespace llvm {
|
||||
extern cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats;
|
||||
}
|
||||
|
||||
namespace {
|
||||
using namespace llvm::ore;
|
||||
|
|
|
@ -109,7 +109,9 @@ static cl::opt<bool>
|
|||
EnablePostSCCAdvisorPrinting("enable-scc-inline-advisor-printing",
|
||||
cl::init(false), cl::Hidden);
|
||||
|
||||
namespace llvm {
|
||||
extern cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats;
|
||||
}
|
||||
|
||||
static cl::opt<std::string> CGSCCInlineReplayFile(
|
||||
"cgscc-inline-replay", cl::init(""), cl::value_desc("filename"),
|
||||
|
|
Loading…
Reference in New Issue