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 class Archive;
16 class Input;
17 class LinkerConfig;
18 
19 /** \class BSDArchiveReader
20  *  \brief BSDArchiveReader reads BSD-variant archive files.
21  *
22  */
23 class BSDArchiveReader : public ArchiveReader {
24  public:
25   BSDArchiveReader();
26   ~BSDArchiveReader();
27 
28   bool readArchive(const LinkerConfig& pConfig, Archive& pArchive);
29   bool isMyFormat(Input& pInput, bool& pContinue) const;
30 };
31 
32 }  // namespace mcld
33 
34 #endif  // MCLD_LD_BSDARCHIVEREADER_H_
35