Home | History | Annotate | Download | only in mcld
      1 //===- AttributeOption.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_ATTRIBUTEOPTION_H_
     10 #define MCLD_ATTRIBUTEOPTION_H_
     11 #include "mcld/MC/Attribute.h"
     12 
     13 namespace mcld {
     14 
     15 class AttributeOption {
     16  public:
     17   AttributeOption();
     18   ~AttributeOption();
     19 
     20   const Attribute& predefined() const { return m_Predefined; }
     21   Attribute& predefined() { return m_Predefined; }
     22 
     23   const AttrConstraint& constraint() const { return m_Constraint; }
     24   AttrConstraint& constraint() { return m_Constraint; }
     25 
     26  private:
     27   Attribute m_Predefined;
     28   AttrConstraint m_Constraint;
     29 };
     30 
     31 }  // namespace mcld
     32 
     33 #endif  // MCLD_ATTRIBUTEOPTION_H_
     34