1 //===- BitcodeOption.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_BITCODEOPTION_H 10 #define MCLD_BITCODEOPTION_H 11 12 #include <mcld/Support/Path.h> 13 14 namespace mcld { 15 16 /** \class BitcodeOption 17 * \brief BitcodeOption represents the options of bitcode on the command line. 18 */ 19 class BitcodeOption 20 { 21 public: 22 BitcodeOption(); 23 24 ~BitcodeOption(); 25 26 void setPosition(unsigned int pPosition) { m_Position = pPosition; } 27 28 unsigned int getPosition() const { return m_Position; } 29 30 void setPath(const sys::fs::Path& pPath) { m_Path = pPath; } 31 32 const sys::fs::Path& getPath() const { return m_Path; } 33 34 bool hasDefined() const; 35 36 private: 37 int m_Position; 38 39 sys::fs::Path m_Path; 40 41 }; 42 43 } // namespace of mcld 44 45 #endif 46 47