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 13namespace mcld 14{ 15 16class Input; 17class Archive; 18class LinkerConfig; 19 20/** \class BSDArchiveReader 21 * \brief BSDArchiveReader reads BSD-variant archive files. 22 * 23 */ 24class BSDArchiveReader : public ArchiveReader 25{ 26public: 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