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 /lldb/source/Expression/IRExecutionUnit.cpp | |
| parent | 33d0d1e36ffac3ff7fb29e5f8e34a6b6957ad8e9 (diff) | |
| download | llvm-ed3e3ee9e30dfbffd2170a770a49b36a7f444916.tar.gz llvm-ed3e3ee9e30dfbffd2170a770a49b36a7f444916.tar.bz2 llvm-ed3e3ee9e30dfbffd2170a770a49b36a7f444916.zip | |
[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 'lldb/source/Expression/IRExecutionUnit.cpp')
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index 73a49e552e3d..f3cf0f623d24 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -406,7 +406,7 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr, } }; - for (llvm::GlobalVariable &global_var : m_module->getGlobalList()) { + for (llvm::GlobalVariable &global_var : m_module->globals()) { RegisterOneValue(global_var); } |
