[all-commits] [llvm/llvm-project] ed3e3e: [NFC][IR] Make Module::getGlobalList() private

vporpo via All-commits all-commits at lists.llvm.org
Tue Feb 14 14:25:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed3e3ee9e30dfbffd2170a770a49b36a7f444916
      https://github.com/llvm/llvm-project/commit/ed3e3ee9e30dfbffd2170a770a49b36a7f444916
  Author: Vasileios Porpodas <vporpodas at google.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/CodeGen/CGObjCMac.cpp
    M lldb/source/Expression/IRExecutionUnit.cpp
    M llvm/docs/ProgrammersManual.rst
    M llvm/include/llvm/IR/Module.h
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/lib/IR/Globals.cpp
    M llvm/lib/Linker/IRMover.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    M llvm/lib/Transforms/IPO/SCCP.cpp
    M llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
    M llvm/lib/Transforms/Utils/CtorUtils.cpp
    M llvm/unittests/IR/ModuleTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list