This patch is to improve code readability.
llvm-svn: 314089
// symbols are finalized, we can perform the replacement.
void SymbolTable::applySymbolRenames() {
for (SymbolRenaming &S : Defsyms) {
- S.Dst->body()->copy(S.Src->body());
+ S.Dst->body()->copyFrom(S.Src->body());
S.Dst->File = S.Src->File;
S.Dst->Binding = S.Binding;
}
// Overwrites all attributes with Other's so that this symbol becomes
// an alias to Other. This is useful for handling some options such as
// --wrap.
-void SymbolBody::copy(SymbolBody *Other) {
+void SymbolBody::copyFrom(SymbolBody *Other) {
memcpy(symbol()->Body.buffer, Other->symbol()->Body.buffer,
sizeof(Symbol::Body));
}
StringRef getName() const { return Name; }
uint8_t getVisibility() const { return StOther & 0x3; }
void parseSymbolVersion();
- void copy(SymbolBody *Other);
+ void copyFrom(SymbolBody *Other);
bool isInGot() const { return GotIndex != -1U; }
bool isInPlt() const { return PltIndex != -1U; }