[lld] r224212 - Remove PECOFFLibraryNode.

Rui Ueyama ruiu at google.com
Sat Dec 13 21:08:53 PST 2014


Author: ruiu
Date: Sat Dec 13 23:08:53 2014
New Revision: 224212

URL: http://llvm.org/viewvc/llvm-project?rev=224212&view=rev
Log:
Remove PECOFFLibraryNode.

This class is empty, provides no additional feature to the base class.

Modified:
    lld/trunk/include/lld/Driver/WinLinkInputGraph.h
    lld/trunk/lib/Driver/WinLinkDriver.cpp

Modified: lld/trunk/include/lld/Driver/WinLinkInputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/WinLinkInputGraph.h?rev=224212&r1=224211&r2=224212&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/WinLinkInputGraph.h (original)
+++ lld/trunk/include/lld/Driver/WinLinkInputGraph.h Sat Dec 13 23:08:53 2014
@@ -40,13 +40,6 @@ private:
   bool _parsed;
 };
 
-/// \brief Represents a PECOFF Library File
-class PECOFFLibraryNode : public PECOFFFileNode {
-public:
-  PECOFFLibraryNode(PECOFFLinkingContext &ctx, StringRef path)
-      : PECOFFFileNode(ctx, path) {}
-};
-
 } // namespace lld
 
 #endif

Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=224212&r1=224211&r2=224212&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Sat Dec 13 23:08:53 2014
@@ -1364,7 +1364,7 @@ bool WinLinkDriver::parse(int argc, cons
     path = ctx.allocate(path);
     if (isLibraryFile(path)) {
       libraries.push_back(std::unique_ptr<FileNode>(
-          new PECOFFLibraryNode(ctx, getLibraryPath(ctx, path))));
+          new PECOFFFileNode(ctx, getLibraryPath(ctx, path))));
     } else {
       files.push_back(std::unique_ptr<FileNode>(
           new PECOFFFileNode(ctx, getObjectPath(ctx, path))));
@@ -1390,7 +1390,7 @@ bool WinLinkDriver::parse(int argc, cons
     for (const StringRef path : defaultLibs)
       if (!ctx.hasNoDefaultLib(path))
         libraries.push_back(std::unique_ptr<FileNode>(
-            new PECOFFLibraryNode(ctx, getLibraryPath(ctx, path.lower()))));
+            new PECOFFFileNode(ctx, getLibraryPath(ctx, path.lower()))));
 
   if (files.empty() && !isReadingDirectiveSection) {
     diag << "No input files\n";





More information about the llvm-commits mailing list