| 58 | }; |
| 59 | |
| 60 | void CompactIds(std::vector<uint32_t>& ids) { |
| 61 | size_t write_index = 0; |
| 62 | for (size_t i = 0; i < ids.size(); ++i) { |
| 63 | if (ids[i] != 0) { |
| 64 | ids[write_index++] = ids[i]; |
| 65 | } |
| 66 | } |
| 67 | ids.resize(write_index); |
| 68 | } |
| 69 | |
| 70 | // A mapping from ids in one module to ids in the other. |
| 71 | // |