[lld] r298403 - Update comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 10:22:13 PDT 2017


Author: ruiu
Date: Tue Mar 21 12:22:13 2017
New Revision: 298403

URL: http://llvm.org/viewvc/llvm-project?rev=298403&view=rev
Log:
Update comment.

Modified:
    lld/trunk/ELF/InputFiles.h

Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=298403&r1=298402&r2=298403&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Tue Mar 21 12:22:13 2017
@@ -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;




More information about the llvm-commits mailing list