| 488 | } |
| 489 | |
| 490 | void AddObjects(std::vector<size_t> const& objectEntries) |
| 491 | { |
| 492 | // Place explicitly linked object files in the front. The linker will |
| 493 | // always use them anyway, and they may depend on symbols from libraries. |
| 494 | if (this->Order == Reverse) { |
| 495 | // Append in reverse order at the end since we reverse the final order. |
| 496 | for (auto index : cmReverseRange(objectEntries)) { |
| 497 | this->FinalEntries.emplace_back(this->Entries[index]); |
| 498 | } |
| 499 | } else { |
| 500 | // Append in reverse order to ensure correct final order |
| 501 | for (auto index : cmReverseRange(objectEntries)) { |
| 502 | this->FinalEntries.emplace(this->FinalEntries.begin(), |
| 503 | this->Entries[index]); |
| 504 | } |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | void Finalize() |
| 509 | { |
no test coverage detected