blob: 6d2b9b78672443751b1375a6569035f1c805a4d8 [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
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
#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