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_ATTRIBUTE_OPTIONS_H
     10 #define MCLD_ATTRIBUTE_OPTIONS_H
     11 #ifdef ENABLE_UNITTEST
     12 #include <gtest.h>
     13 #endif
     14 #include <mcld/MC/Attribute.h>
     15 
     16 namespace mcld {
     17 
     18 class AttributeOption
     19 {
     20 public:
     21   AttributeOption();
     22   ~AttributeOption();
     23 
     24   const Attribute& predefined() const { return m_Predefined; }
     25   Attribute&       predefined()       { return m_Predefined; }
     26 
     27   const AttrConstraint& constraint() const { return m_Constraint; }
     28   AttrConstraint&       constraint()       { return m_Constraint; }
     29 
     30 private:
     31   Attribute m_Predefined;
     32   AttrConstraint m_Constraint;
     33 };
     34 
     35 } // namespace mcld
     36 
     37 #endif
     38 
     39