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 { 17 public: 18 AttributeOption(); 19 ~AttributeOption(); 20 predefined()21 const Attribute& predefined() const { return m_Predefined; } predefined()22 Attribute& predefined() { return m_Predefined; } 23 constraint()24 const AttrConstraint& constraint() const { return m_Constraint; } constraint()25 AttrConstraint& constraint() { return m_Constraint; } 26 27 private: 28 Attribute m_Predefined; 29 AttrConstraint m_Constraint; 30 }; 31 32 } // namespace mcld 33 34 #endif 35 36