[IROutliner] Move global namespace cl::opt inside llvm::

This commit is contained in:
Fangrui Song 2021-12-30 01:12:55 -08:00
parent 43ff781c78
commit b69fe48ccf
2 changed files with 4 additions and 0 deletions

View File

@ -23,11 +23,13 @@
using namespace llvm;
using namespace IRSimilarity;
namespace llvm {
cl::opt<bool>
DisableBranches("no-ir-sim-branch-matching", cl::init(false),
cl::ReallyHidden,
cl::desc("disable similarity matching, and outlining, "
"across branches for debugging purposes."));
} // namespace llvm
IRInstructionData::IRInstructionData(Instruction &I, bool Legality,
IRInstructionDataList &IDList)

View File

@ -36,7 +36,9 @@ using namespace IRSimilarity;
// A command flag to be used for debugging to exclude branches from similarity
// matching and outlining.
namespace llvm {
extern cl::opt<bool> DisableBranches;
} // namespace llvm
// Set to true if the user wants the ir outliner to run on linkonceodr linkage
// functions. This is false by default because the linker can dedupe linkonceodr