Skip to content

Commit 73871aa

Browse files
authored
Merge pull request #27200 from nkcsgexi/debug-flag
ABI/API checker: move node mapping information from under -v to under -debug. NFC
2 parents b234756 + 8912ef9 commit 73871aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ static llvm::cl::opt<bool>
130130
Verbose("v", llvm::cl::desc("Verbose"),
131131
llvm::cl::cat(Category));
132132

133+
static llvm::cl::opt<bool>
134+
DebugMapping("debug-mapping", llvm::cl::desc("Dumping information for debug purposes"),
135+
llvm::cl::cat(Category));
136+
133137
static llvm::cl::opt<bool>
134138
Abi("abi", llvm::cl::desc("Dumping ABI interface"), llvm::cl::init(false),
135139
llvm::cl::cat(Category));
@@ -1090,7 +1094,7 @@ class PrunePass : public MatchedNodeListener, public SDKTreeDiffPass {
10901094
ProtocolReqWhitelist(std::move(prWhitelist)) {}
10911095

10921096
void foundMatch(NodePtr Left, NodePtr Right, NodeMatchReason Reason) override {
1093-
if (options::Verbose)
1097+
if (options::DebugMapping)
10941098
debugMatch(Left, Right, Reason, llvm::errs());
10951099
switch (Reason) {
10961100
case NodeMatchReason::Added:

0 commit comments

Comments
 (0)