Rename 'fatal' to 'check' when it doesn't always fail.
llvm-svn: 262666
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index e98d7d6..66fc79c 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -39,12 +39,12 @@
}
template <class ELFT> StringRef InputSectionBase<ELFT>::getSectionName() const {
- return fatal(File->getObj().getSectionName(this->Header));
+ return check(File->getObj().getSectionName(this->Header));
}
template <class ELFT>
ArrayRef<uint8_t> InputSectionBase<ELFT>::getSectionData() const {
- return fatal(this->File->getObj().getSectionContents(this->Header));
+ return check(this->File->getObj().getSectionContents(this->Header));
}
template <class ELFT>