diff options
| author | Andrew Litteken <andrew.litteken@gmail.com> | 2022-01-25 18:41:18 -0600 |
|---|---|---|
| committer | Andrew Litteken <andrew.litteken@gmail.com> | 2022-01-25 18:41:30 -0600 |
| commit | ba79295c48bb362e2183361ad4bebc4ad2ab75a2 (patch) | |
| tree | 20a61f72c7907a9da05afb69e58b985fe9493b24 /llvm/lib | |
| parent | a13c10588cd57bcef93f2a27a74dd7c32bc6850b (diff) | |
| download | llvm-ba79295c48bb362e2183361ad4bebc4ad2ab75a2.zip llvm-ba79295c48bb362e2183361ad4bebc4ad2ab75a2.tar.gz llvm-ba79295c48bb362e2183361ad4bebc4ad2ab75a2.tar.bz2 | |
[NFC][IROutliner] fix namespace and unused variable
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/IRSimilarityIdentifier.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/IROutliner.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp index 0ce3d21..d2f0c57 100644 --- a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp +++ b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp @@ -29,7 +29,6 @@ cl::opt<bool> cl::ReallyHidden, cl::desc("disable similarity matching, and outlining, " "across branches for debugging purposes.")); -} // namespace llvm cl::opt<bool> DisableIndirectCalls("no-ir-sim-indirect-calls", cl::init(false), @@ -40,7 +39,7 @@ cl::opt<bool> MatchCallsByName("ir-sim-calls-by-name", cl::init(false), cl::ReallyHidden, cl::desc("only allow matching call instructions if the " "name and type signature match.")); - +} // namespace llvm IRInstructionData::IRInstructionData(Instruction &I, bool Legality, IRInstructionDataList &IDList) diff --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp index fd19b66..e064fbb 100644 --- a/llvm/lib/Transforms/IPO/IROutliner.cpp +++ b/llvm/lib/Transforms/IPO/IROutliner.cpp @@ -38,11 +38,11 @@ using namespace IRSimilarity; // matching and outlining. namespace llvm { extern cl::opt<bool> DisableBranches; -} // namespace llvm // A command flag to be used for debugging to indirect calls from similarity // matching and outlining. extern cl::opt<bool> DisableIndirectCalls; +} // 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 |
