Lines Matching refs:ra
108 auto f = [](const Reloc &ra, const Reloc &rb) { in equalsConstant() argument
109 if (ra.type != rb.type) in equalsConstant()
111 if (ra.pcrel != rb.pcrel) in equalsConstant()
113 if (ra.length != rb.length) in equalsConstant()
115 if (ra.offset != rb.offset) in equalsConstant()
117 if (ra.referent.is<Symbol *>() != rb.referent.is<Symbol *>()) in equalsConstant()
124 if (ra.referent.is<Symbol *>()) { in equalsConstant()
125 const auto *sa = ra.referent.get<Symbol *>(); in equalsConstant()
132 return sa == sb && ra.addend == rb.addend; in equalsConstant()
138 return da->value + ra.addend == db->value + rb.addend; in equalsConstant()
145 isecA = ra.referent.get<InputSection *>(); in equalsConstant()
155 return ra.addend == rb.addend; in equalsConstant()
158 if (ra.referent.is<Symbol *>()) in equalsConstant()
163 ra.addend == rb.addend; in equalsConstant()
167 return isecA->getOffset(ra.addend) == isecB->getOffset(rb.addend); in equalsConstant()
181 auto f = [this](const Reloc &ra, const Reloc &rb) { in equalsVariable() argument
183 if (ra.referent == rb.referent) in equalsVariable()
186 if (ra.referent.is<Symbol *>()) { in equalsVariable()
190 const auto *da = cast<Defined>(ra.referent.get<Symbol *>()); in equalsVariable()
199 const auto *sa = ra.referent.get<InputSection *>(); in equalsVariable()