llvm.org GIT mirror llvm / 5073cf0
[Dominators] Rename Update.Arc to Update.Edge Update.Arc of type Arc caused a warning on some buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307968 91177308-0d34-0410-b5e6-96231b3b80d8 Jakub Kuderski 2 years ago
2 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
143143 return None;
144144 Update NextUpdate = Updates[UpdateIdx++];
145145 if (NextUpdate.Action == ActionKind::Insert)
146 connect(NextUpdate.Arc);
146 connect(NextUpdate.Edge);
147147 else
148 disconnect(NextUpdate.Arc);
148 disconnect(NextUpdate.Edge);
149149
150150 return NextUpdate;
151151 }
160160 i = 0;
161161 for (const auto &U : Updates) {
162162 OS << (i + 1 == UpdateIdx ? "->" : " ") << i
163 << ((U.Action == ActionKind::Insert) ? "\tIns " : "\tDel ") << U.Arc.From
164 << " -> " << U.Arc.To << "\n";
163 << ((U.Action == ActionKind::Insert) ? "\tIns " : "\tDel ")
164 << U.Edge.From << " -> " << U.Edge.To << "\n";
165165 ++i;
166166 }
167167 }
236236
237237 EXPECT_TRUE(UpdateC);
238238 EXPECT_EQ(UpdateC->Action, CFGBuilder::ActionKind::Delete);
239 EXPECT_EQ(UpdateC->Arc.From, "c");
240 EXPECT_EQ(UpdateC->Arc.To, "d");
239 EXPECT_EQ(UpdateC->Edge.From, "c");
240 EXPECT_EQ(UpdateC->Edge.To, "d");
241241 EXPECT_TRUE(isa(B.getOrAddBlock("c")->getTerminator()));
242242
243243 size_t i = 1;
6161 enum class ActionKind { Insert, Delete };
6262 struct Update {
6363 ActionKind Action;
64 Arc Arc;
64 Arc Edge;
6565 };
6666
6767 CFGBuilder(Function *F, const std::vector &InitialArcs,