//===- IRObjectFile.h - LLVM IR object file implementation ------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file declares the IRObjectFile template class. // //===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_IROBJECTFILE_H #define LLVM_OBJECT_IROBJECTFILE_H #include "llvm/Bitcode/BitcodeReader.h" #include "llvm/Object/IRSymtab.h" #include "llvm/Object/ModuleSymbolTable.h" #include "llvm/Object/SymbolicFile.h" namespace llvm { class Module; namespace object { class ObjectFile; class IRObjectFile : public SymbolicFile { … }; /// The contents of a bitcode file and its irsymtab. Any underlying data /// for the irsymtab are owned by Symtab and Strtab. struct IRSymtabFile { … }; /// Reads a bitcode file, creating its irsymtab if necessary. Expected<IRSymtabFile> readIRSymtab(MemoryBufferRef MBRef); } } // namespace llvm #endif