forked from OSchip/llvm-project
[NFC][llvm] Inclusive language: remove uses of sanity in llvm/lib/ExecutionEngine/
Reworded and removed code comments to avoid using `sanity check` and `sanity test`.
This commit is contained in:
parent
24d1673c8b
commit
59c84774d2
|
@ -103,7 +103,7 @@ void ContinuationRecordBuilder::writeMemberType(RecordType &Record) {
|
|||
if (getCurrentSegmentLength() > MaxSegmentLength) {
|
||||
// We need to inject some bytes before the member we just wrote but after
|
||||
// the previous member. Save off the length of the member we just wrote so
|
||||
// that we can do some sanity checking on it.
|
||||
// that we can do validate it.
|
||||
uint32_t MemberLength = SegmentWriter.getOffset() - OriginalOffset;
|
||||
(void) MemberLength;
|
||||
insertSegmentEnd(OriginalOffset);
|
||||
|
|
|
@ -299,7 +299,7 @@ Error EHFrameEdgeFixer::processCIE(ParseContext &PC, Block &B,
|
|||
if (auto Err = RecordReader.skip(PC.G.getPointerSize()))
|
||||
return Err;
|
||||
|
||||
// Read and sanity check the code alignment factor.
|
||||
// Read and validate the code alignment factor.
|
||||
{
|
||||
uint64_t CodeAlignmentFactor = 0;
|
||||
if (auto Err = RecordReader.readULEB128(CodeAlignmentFactor))
|
||||
|
@ -310,7 +310,7 @@ Error EHFrameEdgeFixer::processCIE(ParseContext &PC, Block &B,
|
|||
" (expected 1)");
|
||||
}
|
||||
|
||||
// Read and sanity check the data alignment factor.
|
||||
// Read and validate the data alignment factor.
|
||||
{
|
||||
int64_t DataAlignmentFactor = 0;
|
||||
if (auto Err = RecordReader.readSLEB128(DataAlignmentFactor))
|
||||
|
|
|
@ -156,7 +156,7 @@ private:
|
|||
using Base = ELFLinkGraphBuilder<ELFT>;
|
||||
using Self = ELFLinkGraphBuilder_x86_64;
|
||||
for (const auto &RelSect : Base::Sections) {
|
||||
// Sanity check the section to read relocation entries from.
|
||||
// Validate the section to read relocation entries from.
|
||||
if (RelSect.sh_type == ELF::SHT_REL)
|
||||
return make_error<StringError>(
|
||||
"No SHT_REL in valid x64 ELF object files",
|
||||
|
@ -189,7 +189,7 @@ private:
|
|||
Base::GraphSymbols.size()),
|
||||
inconvertibleErrorCode());
|
||||
|
||||
// Sanity check the relocation kind.
|
||||
// Validate the relocation kind.
|
||||
auto ELFRelocKind = getRelocationKind(Rel.getType(false));
|
||||
if (!ELFRelocKind)
|
||||
return ELFRelocKind.takeError();
|
||||
|
|
|
@ -23,7 +23,7 @@ MachOLinkGraphBuilder::~MachOLinkGraphBuilder() {}
|
|||
|
||||
Expected<std::unique_ptr<LinkGraph>> MachOLinkGraphBuilder::buildGraph() {
|
||||
|
||||
// Sanity check: we only operate on relocatable objects.
|
||||
// We only operate on relocatable objects.
|
||||
if (!Obj.isRelocatableObject())
|
||||
return make_error<JITLinkError>("Object is not a relocatable MachO");
|
||||
|
||||
|
@ -281,7 +281,7 @@ Error MachOLinkGraphBuilder::createNormalizedSymbols() {
|
|||
dbgs() << "\n";
|
||||
});
|
||||
|
||||
// If this symbol has a section, sanity check that the addresses line up.
|
||||
// If this symbol has a section, verify that the addresses line up.
|
||||
if (Sect != 0) {
|
||||
auto NSec = findSectionByIndex(Sect - 1);
|
||||
if (!NSec)
|
||||
|
|
|
@ -228,7 +228,7 @@ private:
|
|||
|
||||
MachO::relocation_info RI = getRelocationInfo(RelItr);
|
||||
|
||||
// Sanity check the relocation kind.
|
||||
// Validate the relocation kind.
|
||||
auto Kind = getRelocationKind(RI);
|
||||
if (!Kind)
|
||||
return Kind.takeError();
|
||||
|
|
|
@ -272,7 +272,7 @@ private:
|
|||
Symbol *TargetSymbol = nullptr;
|
||||
uint64_t Addend = 0;
|
||||
|
||||
// Sanity check the relocation kind.
|
||||
// Validate the relocation kind.
|
||||
auto MachORelocKind = getRelocKind(RI);
|
||||
if (!MachORelocKind)
|
||||
return MachORelocKind.takeError();
|
||||
|
|
|
@ -140,7 +140,7 @@ public:
|
|||
return ++RelI;
|
||||
}
|
||||
|
||||
// Sanity check relocation type.
|
||||
// Validate the relocation type.
|
||||
switch (RelType) {
|
||||
UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_PAIR);
|
||||
UNIMPLEMENTED_RELOC(MachO::ARM_RELOC_SECTDIFF);
|
||||
|
|
Loading…
Reference in New Issue