blob: 7236d6adf4a4e3629f7fd6a17e3dc528ba79e79e [file] [log] [blame]
//===- BitcodeOption.h ----------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_BITCODEOPTION_H
#define MCLD_BITCODEOPTION_H
#include <mcld/Support/Path.h>
namespace mcld {
/** \class BitcodeOption
* \brief BitcodeOption represents the options of bitcode on the command line.
*/
class BitcodeOption
{
public:
BitcodeOption();
~BitcodeOption();
void setPosition(unsigned int pPosition) { m_Position = pPosition; }
unsigned int getPosition() const { return m_Position; }
void setPath(const sys::fs::Path& pPath) { m_Path = pPath; }
const sys::fs::Path& getPath() const { return m_Path; }
bool hasDefined() const;
private:
int m_Position;
sys::fs::Path m_Path;
};
} // namespace of mcld
#endif