Home | History | Annotate | Download | only in mcld
      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 
     13 namespace mcld {
     14 
     15 class LinkerConfig;
     16 
     17 class TargetControlOptions
     18 {
     19 public:
     20   TargetControlOptions();
     21 
     22   bool parse(LinkerConfig& pConfig);
     23 
     24 private:
     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