| 31 | } |
| 32 | |
| 33 | void DirectionAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) { |
| 34 | auto &A = AF.getLLVMArg(); |
| 35 | set(A, AF.getArgDir(), Indices); |
| 36 | |
| 37 | auto SI = AF.getStructInfo(); |
| 38 | if (!SI) |
| 39 | return; |
| 40 | |
| 41 | for (auto Iter : SI->FieldResults) { |
| 42 | if (!Iter.second) |
| 43 | continue; |
| 44 | |
| 45 | Indices.push_back(Iter.first); |
| 46 | add(*Iter.second, Indices); |
| 47 | Indices.pop_back(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | } // namespace ftg |
nothing calls this directly
no test coverage detected