summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-03-21 17:22:13 +0000
committerRui Ueyama <ruiu@google.com>2017-03-21 17:22:13 +0000
commitca7818ebcab035d80b292b00f7f8c06249a8ef59 (patch)
tree9c59170414454f2823d965c40fab5539cf85f7a5
parentf76a8ac5a95c7f1fc67b7787062ee970ba340656 (diff)
downloadbcm5719-llvm-ca7818ebcab035d80b292b00f7f8c06249a8ef59.tar.gz
bcm5719-llvm-ca7818ebcab035d80b292b00f7f8c06249a8ef59.zip
Update comment.
llvm-svn: 298403
-rw-r--r--lld/ELF/InputFiles.h4
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;
OpenPOWER on IntegriCloud