diff options
| -rw-r--r-- | lld/ELF/InputFiles.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index ee7cffcfff3..92943109e66 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -74,8 +74,8 @@ public: StringRef getName() const { return MB.getBufferIdentifier(); } MemoryBufferRef MB; - // If it is a file that can have sections, like object file or binary file, - // then method returns them. + // Returns sections. It is a runtime error to call this function + // on files that don't have the notion of sections. ArrayRef<InputSectionBase *> getSections() const { assert(FileKind == ObjectKind || FileKind == BinaryKind); return Sections; |

