Lines Matching refs:ResolveInfo
23 static ResolveInfo* g_NullResolveInfo = NULL;
28 ResolveInfo::ResolveInfo() : m_Size(0), m_BitField(0) { in ResolveInfo() function in mcld::ResolveInfo
32 ResolveInfo::~ResolveInfo() { in ~ResolveInfo()
35 void ResolveInfo::override(const ResolveInfo& pFrom) { in override()
41 void ResolveInfo::overrideAttributes(const ResolveInfo& pFrom) { in overrideAttributes()
48 void ResolveInfo::overrideVisibility(const ResolveInfo& pFrom) { in overrideVisibility()
72 void ResolveInfo::setRegular() { in setRegular()
76 void ResolveInfo::setDynamic() { in setDynamic()
80 void ResolveInfo::setSource(bool pIsDyn) { in setSource()
87 void ResolveInfo::setInDyn() { in setInDyn()
91 void ResolveInfo::setType(uint32_t pType) { in setType()
96 void ResolveInfo::setDesc(uint32_t pDesc) { in setDesc()
101 void ResolveInfo::setBinding(uint32_t pBinding) { in setBinding()
109 void ResolveInfo::setReserved(uint32_t pReserved) { in setReserved()
114 void ResolveInfo::setOther(uint32_t pOther) { in setOther()
115 setVisibility(static_cast<ResolveInfo::Visibility>(pOther & 0x3)); in setOther()
118 void ResolveInfo::setVisibility(ResolveInfo::Visibility pVisibility) { in setVisibility()
123 void ResolveInfo::setIsSymbol(bool pIsSymbol) { in setIsSymbol()
130 bool ResolveInfo::isNull() const { in isNull()
134 bool ResolveInfo::isDyn() const { in isDyn()
138 bool ResolveInfo::isUndef() const { in isUndef()
142 bool ResolveInfo::isDefine() const { in isDefine()
146 bool ResolveInfo::isCommon() const { in isCommon()
150 bool ResolveInfo::isIndirect() const { in isIndirect()
155 bool ResolveInfo::isGlobal() const { in isGlobal()
160 bool ResolveInfo::isWeak() const { in isWeak()
165 bool ResolveInfo::isLocal() const { in isLocal()
170 bool ResolveInfo::isAbsolute() const { in isAbsolute()
174 bool ResolveInfo::isSymbol() const { in isSymbol()
178 bool ResolveInfo::isString() const { in isString()
182 bool ResolveInfo::isInDyn() const { in isInDyn()
186 uint32_t ResolveInfo::type() const { in type()
190 uint32_t ResolveInfo::desc() const { in desc()
194 uint32_t ResolveInfo::binding() const { in binding()
197 return ResolveInfo::Absolute; in binding()
199 return ResolveInfo::Local; in binding()
204 uint32_t ResolveInfo::reserved() const { in reserved()
208 ResolveInfo::Visibility ResolveInfo::visibility() const { in visibility()
209 return static_cast<ResolveInfo::Visibility>((m_BitField & VISIBILITY_MASK) >> in visibility()
213 bool ResolveInfo::compare(const ResolveInfo::key_type& pKey) { in compare()
220 bool ResolveInfo::shouldForceLocal(const LinkerConfig& pConfig) { in shouldForceLocal()
227 (visibility() == ResolveInfo::Hidden || in shouldForceLocal()
228 visibility() == ResolveInfo::Internal) && in shouldForceLocal()
236 ResolveInfo* ResolveInfo::Create(const ResolveInfo::key_type& pKey) { in Create()
237 ResolveInfo* info = in Create()
238 static_cast<ResolveInfo*>(malloc(sizeof(ResolveInfo) + pKey.size() + 1)); in Create()
242 new (info) ResolveInfo(); // call constructor at the `result` address. in Create()
245 info->m_BitField &= ~ResolveInfo::RESOLVE_MASK; in Create()
246 info->m_BitField |= (pKey.size() << ResolveInfo::NAME_LENGTH_OFFSET); in Create()
250 void ResolveInfo::Destroy(ResolveInfo*& pInfo) { in Destroy()
255 pInfo->~ResolveInfo(); in Destroy()
262 ResolveInfo* ResolveInfo::Null() { in Null()
265 static_cast<ResolveInfo*>(malloc(sizeof(ResolveInfo) + 1)); in Null()
266 new (g_NullResolveInfo) ResolveInfo(); in Null()