Revert "[NFC][IR] Make Module::getGlobalList() private"

This reverts commit ed3e3ee9e3.
This commit is contained in:
Vasileios Porpodas
2023-02-14 14:28:02 -08:00
parent cafb1c1cb2
commit cb5f239363
15 changed files with 28 additions and 151 deletions

View File

@@ -3693,7 +3693,7 @@ Error BitcodeReader::globalCleanup() {
UpgradedVariables.emplace_back(&GV, Upgraded);
for (auto &Pair : UpgradedVariables) {
Pair.first->eraseFromParent();
TheModule->insertGlobalVariable(Pair.second);
TheModule->getGlobalList().push_back(Pair.second);
}
// Force deallocation of memory for these vectors to favor the client that