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