[lld] r224236 - Remove dead code.

Rui Ueyama ruiu at google.com
Sun Dec 14 23:22:30 PST 2014


Author: ruiu
Date: Mon Dec 15 01:22:29 2014
New Revision: 224236

URL: http://llvm.org/viewvc/llvm-project?rev=224236&view=rev
Log:
Remove dead code.

This field was not even initialized properly.

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=224236&r1=224235&r2=224236&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/FileArchive.cpp (original)
+++ lld/trunk/lib/ReaderWriter/FileArchive.cpp Mon Dec 15 01:22:29 2014
@@ -65,9 +65,6 @@ public:
     return result.release();
   }
 
-  /// \brief Load all members of the archive?
-  virtual bool isWholeArchive() const { return _isWholeArchive; }
-
   /// \brief parse each member
   std::error_code
   parseAllMembers(std::vector<std::unique_ptr<File>> &result) const override {
@@ -221,7 +218,6 @@ private:
   atom_collection_vector<UndefinedAtom> _undefinedAtoms;
   atom_collection_vector<SharedLibraryAtom> _sharedLibraryAtoms;
   atom_collection_vector<AbsoluteAtom> _absoluteAtoms;
-  bool _isWholeArchive;
   bool _logLoading;
   mutable std::vector<std::unique_ptr<MemoryBuffer>> _memberBuffers;
 };





More information about the llvm-commits mailing list