Home | History | Annotate | Download | only in LD
      1 //===- BSDArchiveReader.h -------------------------------------------------===//
      2 //
      3 //                     The MCLinker Project
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #ifndef MCLD_LD_BSDARCHIVEREADER_H
     10 #define MCLD_LD_BSDARCHIVEREADER_H
     11 #include <mcld/LD/ArchiveReader.h>
     12 
     13 namespace mcld
     14 {
     15 
     16 class Input;
     17 class Archive;
     18 class LinkerConfig;
     19 
     20 /** \class BSDArchiveReader
     21  *  \brief BSDArchiveReader reads BSD-variant archive files.
     22  *
     23  */
     24 class BSDArchiveReader : public ArchiveReader
     25 {
     26 public:
     27   BSDArchiveReader();
     28   ~BSDArchiveReader();
     29 
     30   bool readArchive(const LinkerConfig& pConfig, Archive& pArchive);
     31   bool isMyFormat(Input& pInput, bool &pContinue) const;
     32 };
     33 
     34 } // namespace of mcld
     35 
     36 #endif
     37 
     38