blob: 14a667f1859b4917e03c3c8e84a23cd3f6f4a8d8 [file] [log] [blame]
//===- ScriptReader.h -----------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_SCRIPT_SCRIPTREADER_H
#define MCLD_SCRIPT_SCRIPTREADER_H
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
#include <mcld/LD/LDReader.h>
namespace mcld {
class Module;
class ScriptFile;
class Input;
class GroupReader;
class LinkerConfig;
class LinkerScript;
class TargetLDBackend;
class ScriptReader : public LDReader
{
public:
ScriptReader(GroupReader& pGroupReader);
~ScriptReader();
/// readScript
bool readScript(const LinkerConfig& pConfig, ScriptFile& pScriptFile);
/// isMyFormat
bool isMyFormat(Input& pInput, bool &pContinue) const;
GroupReader& getGroupReader() { return m_GroupReader; }
private:
GroupReader& m_GroupReader;
};
} // namespace of mcld
#endif