diff options
| author | Vasileios Porpodas <vporpodas@google.com> | 2023-02-08 10:13:01 -0800 |
|---|---|---|
| committer | Vasileios Porpodas <vporpodas@google.com> | 2023-02-14 14:25:10 -0800 |
| commit | ed3e3ee9e30dfbffd2170a770a49b36a7f444916 (patch) | |
| tree | 6275f64f87d50bc50565ffe3e4d43ff1716691bc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 33d0d1e36ffac3ff7fb29e5f8e34a6b6957ad8e9 (diff) | |
[NFC][IR] Make Module::getGlobalList() private
This patch adds several missing GlobalList modifier functions, like
removeGlobalVariable(), eraseGlobalVariable() and insertGlobalVariable().
There is no longer need to access the list directly so it also makes
getGlobalList() private.
Differential Revision: https://reviews.llvm.org/D144027
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index ef9a486eb5c9..35607df04495 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3693,7 +3693,7 @@ Error BitcodeReader::globalCleanup() { UpgradedVariables.emplace_back(&GV, Upgraded); for (auto &Pair : UpgradedVariables) { Pair.first->eraseFromParent(); - TheModule->getGlobalList().push_back(Pair.second); + TheModule->insertGlobalVariable(Pair.second); } // Force deallocation of memory for these vectors to favor the client that |
