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