Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:37:06

0001 //===-- Serialization/ObjectFilePCHContainerReader.h ------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_SERIALIZATION_OBJECTFILEPCHCONTAINERREADER_H
0010 #define LLVM_CLANG_SERIALIZATION_OBJECTFILEPCHCONTAINERREADER_H
0011 
0012 #include "clang/Serialization/PCHContainerOperations.h"
0013 
0014 namespace clang {
0015 /// A PCHContainerReader implementation that uses LLVM to
0016 /// wraps Clang modules inside a COFF, ELF, or Mach-O container.
0017 class ObjectFilePCHContainerReader : public PCHContainerReader {
0018   ArrayRef<StringRef> getFormats() const override;
0019 
0020   /// Returns the serialized AST inside the PCH container Buffer.
0021   StringRef ExtractPCH(llvm::MemoryBufferRef Buffer) const override;
0022 };
0023 } // namespace clang
0024 
0025 #endif