[all-commits] [llvm/llvm-project] 1d5393: [BOLT] Change base class of ExecutableFileMemoryMa...

maksfb via All-commits all-commits at lists.llvm.org
Fri Sep 16 13:39:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d5393526c29312eb51ab7dbbc082d10dfd44a5b
      https://github.com/llvm/llvm-project/commit/1d5393526c29312eb51ab7dbbc082d10dfd44a5b
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M bolt/include/bolt/Rewrite/ExecutableFileMemoryManager.h
    M bolt/lib/Core/BinarySection.cpp
    M bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp

  Log Message:
  -----------
  [BOLT] Change base class of ExecutableFileMemoryManager

When we derive EFMM from SectionMemoryManager, it brings into EFMM extra
functionality, such as the registry of exception handling sections,
page permission management, etc. Such functionality is of no use to
llvm-bolt and can even be detrimental (see
https://github.com/llvm/llvm-project/issues/56726).

Change the base class of ExecutableFileMemoryManager to MemoryManager,
avoid registering EH sections, and skip memory finalization.

Fixes #56726

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D133994




More information about the All-commits mailing list