[all-commits] [llvm/llvm-project] 7ec057: [NFC][Object] Include header `BitcodeReader.h` ins...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Dec 7 12:32:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ec057ff4a0662fea834af607b48d39b490c0aa0
      https://github.com/llvm/llvm-project/commit/7ec057ff4a0662fea834af607b48d39b490c0aa0
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Object/IRObjectFile.h

  Log Message:
  -----------
  [NFC][Object] Include header `BitcodeReader.h` instead of using forward declaration for BitcodeModule

`BitcodeModule` is used as element of a vector in `IRSymtabFile`, while in the
header there is only a forward declaration. It will work if the header `BitcodeReader.h`
is included before including `IRObjectFile.h`. However, it is not always the case,
causing compilation error. This patch simply includes the header and remove the
forward declaration.

Reviewed By: tejohnson

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




More information about the All-commits mailing list