AttributeOption.h revision 87f34658dec9097d987d254a990ea7f311bfc95f
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#ifdef ENABLE_UNITTEST 12#include <gtest.h> 13#endif 14#include <mcld/MC/Attribute.h> 15 16namespace mcld { 17 18class AttributeOption 19{ 20public: 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 30private: 31 Attribute m_Predefined; 32 AttrConstraint m_Constraint; 33}; 34 35} // namespace mcld 36 37#endif 38 39