[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/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 1e83fc6..9fe6e28 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -683,7 +683,7 @@
PC = read64<E>(F.PCRel);
break;
default:
- fatal("unknown FDE size encoding");
+ fatal("Unknown FDE size encoding");
}
switch (F.Enc & 0x70) {
case DW_EH_PE_absptr:
@@ -691,7 +691,7 @@
case DW_EH_PE_pcrel:
return PC + EhVA + F.Off + 8;
default:
- fatal("unknown FDE size relative encoding");
+ fatal("Unknown FDE size relative encoding");
}
}
@@ -1002,7 +1002,7 @@
// Read a byte and advance D by one byte.
static uint8_t readByte(ArrayRef<uint8_t> &D) {
if (D.empty())
- fatal("corrupted or unsupported CIE information");
+ fatal("Corrupted or unsupported CIE information");
uint8_t B = D.front();
D = D.slice(1);
return B;
@@ -1015,7 +1015,7 @@
if ((Val & 0x80) == 0)
return;
}
- fatal("corrupted or unsupported CIE information");
+ fatal("Corrupted or unsupported CIE information");
}
template <class ELFT> static size_t getAugPSize(unsigned Enc) {
@@ -1033,7 +1033,7 @@
case DW_EH_PE_sdata8:
return 8;
}
- fatal("unknown FDE encoding");
+ fatal("Unknown FDE encoding");
}
template <class ELFT> static void skipAugP(ArrayRef<uint8_t> &D) {
@@ -1042,7 +1042,7 @@
fatal("DW_EH_PE_aligned encoding is not supported");
size_t Size = getAugPSize<ELFT>(Enc);
if (Size >= D.size())
- fatal("corrupted CIE");
+ fatal("Corrupted CIE");
D = D.slice(Size);
}
@@ -1058,7 +1058,7 @@
const unsigned char *AugEnd = std::find(D.begin() + 1, D.end(), '\0');
if (AugEnd == D.end())
- fatal("corrupted CIE");
+ fatal("Corrupted CIE");
StringRef Aug(reinterpret_cast<const char *>(D.begin()), AugEnd - D.begin());
D = D.slice(Aug.size() + 1);
@@ -1094,7 +1094,7 @@
readByte(D);
continue;
}
- fatal("unknown .eh_frame augmentation string: " + Aug);
+ fatal("Unknown .eh_frame augmentation string: " + Aug);
}
return DW_EH_PE_absptr;
}