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