[NFC][Object] Include header `BitcodeReader.h` instead of using forward declaration...
authorShilei Tian <i@tianshilei.me>
Wed, 7 Dec 2022 20:28:20 +0000 (15:28 -0500)
committerShilei Tian <i@tianshilei.me>
Wed, 7 Dec 2022 20:32:04 +0000 (15:32 -0500)
commit7ec057ff4a0662fea834af607b48d39b490c0aa0
tree401e527161b81307a0a57a540e67874b757199e2
parent7806f86a5eed6b858e47ab6c4aac5c3618d2af5f
[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
llvm/include/llvm/Object/IRObjectFile.h