[lld] r207885 - Remove "virtual" and add "override".
Rui Ueyama
ruiu at google.com
Fri May 2 16:44:02 PDT 2014
Author: ruiu
Date: Fri May 2 18:44:02 2014
New Revision: 207885
URL: http://llvm.org/viewvc/llvm-project?rev=207885&view=rev
Log:
Remove "virtual" and add "override".
Modified:
lld/trunk/lib/ReaderWriter/FileArchive.cpp
Modified: lld/trunk/lib/ReaderWriter/FileArchive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/FileArchive.cpp?rev=207885&r1=207884&r2=207885&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/FileArchive.cpp (original)
+++ lld/trunk/lib/ReaderWriter/FileArchive.cpp Fri May 2 18:44:02 2014
@@ -71,7 +71,7 @@ public:
virtual bool isWholeArchive() const { return _isWholeArchive; }
/// \brief parse each member
- virtual error_code
+ error_code
parseAllMembers(std::vector<std::unique_ptr<File>> &result) const override {
for (auto mf = _archive->child_begin(), me = _archive->child_end();
mf != me; ++mf) {
@@ -200,12 +200,12 @@ class ArchiveReader : public Reader {
public:
ArchiveReader(bool logLoading) : _logLoading(logLoading) {}
- virtual bool canParse(file_magic magic, StringRef,
- const MemoryBuffer &) const override {
+ bool canParse(file_magic magic, StringRef,
+ const MemoryBuffer &) const override {
return (magic == llvm::sys::fs::file_magic::archive);
}
- virtual error_code
+ error_code
parseFile(std::unique_ptr<MemoryBuffer> &mb, const Registry ®,
std::vector<std::unique_ptr<File>> &result) const override {
// Make Archive object which will be owned by FileArchive object.
More information about the llvm-commits
mailing list