TargetControlOptions.h revision 533eae20118036f425f27bf0536ef0ccbb090b65
1//===- TargetControlOptions.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_LDLITE_TARGET_CONTROL_OPTIONS_H
10#define MCLD_LDLITE_TARGET_CONTROL_OPTIONS_H
11#include <llvm/Support/CommandLine.h>
12
13namespace mcld {
14
15class LinkerConfig;
16
17class TargetControlOptions
18{
19public:
20  TargetControlOptions();
21
22  bool parse(LinkerConfig& pConfig);
23
24private:
25  llvm::cl::opt<int>& m_GPSize;
26  llvm::cl::opt<bool>& m_WarnSharedTextrel;
27  llvm::cl::opt<bool>& m_FIXCA8;
28  llvm::cl::opt<bool>& m_EB;
29  llvm::cl::opt<bool>& m_EL;
30  llvm::cl::opt<bool>& m_SVR4Compatibility;
31};
32
33} // namespace of mcld
34
35#endif
36
37