[all-commits] [llvm/llvm-project] ecbc81: [NFC][XCOFF] Use common function to calculate file...

Jake Egan via All-commits all-commits at lists.llvm.org
Tue Jul 18 19:09:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecbc812e0ccaa6d969bb8ee672bc5146cad3d757
      https://github.com/llvm/llvm-project/commit/ecbc812e0ccaa6d969bb8ee672bc5146cad3d757
  Author: Jake Egan <5326451+jakeegan at users.noreply.github.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M llvm/lib/MC/XCOFFObjectWriter.cpp

  Log Message:
  -----------
  [NFC][XCOFF] Use common function to calculate file offset

The file offset code is repeated in nearly identical form for every derivation of SectionEntry, so make it into a method in SectionEntry instead.

Reviewed By: scott.linder

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




More information about the All-commits mailing list