[ELF] - Consistent spelling for error/warning messages
Previously error and warnings were not consistent in lld.
Some of them started from lowercase letter, others from
uppercase. Also there was one or two which had a dot at the end.
This patch changes all messages to start from uppercase letter if
they were not before.
Differential revision: http://reviews.llvm.org/D18045
llvm-svn: 263125
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 1e2d620..4cd51ae 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -535,7 +535,7 @@
write32le(Loc, Out<ELF32LE>::TlsPhdr->p_memsz - SA);
break;
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}
@@ -953,7 +953,7 @@
break;
}
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}
@@ -983,7 +983,7 @@
write16be(Loc, applyPPCLo(SA));
break;
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}
@@ -1191,7 +1191,7 @@
write64be(Loc, SA);
break;
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}
@@ -1454,7 +1454,7 @@
break;
}
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}
@@ -1553,7 +1553,7 @@
void AMDGPUTargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
uint64_t P, uint64_t SA, uint64_t ZA,
uint8_t *PairedLoc) const {
- llvm_unreachable("not implemented");
+ llvm_unreachable("Not implemented");
}
template <class ELFT> MipsTargetInfo<ELFT>::MipsTargetInfo() {
@@ -1770,7 +1770,7 @@
writeMipsLo16<E>(Loc, S + readSignedLo16<E>(Loc) - P);
break;
default:
- fatal("unrecognized reloc " + Twine(Type));
+ fatal("Unrecognized reloc " + Twine(Type));
}
}