[lld] r262164 - Remove a few bits of elf from the old linker.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 18:22:24 PST 2016


Author: rafael
Date: Sat Feb 27 20:22:24 2016
New Revision: 262164

URL: http://llvm.org/viewvc/llvm-project?rev=262164&view=rev
Log:
Remove a few bits of elf from the old linker.

Modified:
    lld/trunk/include/lld/Core/File.h
    lld/trunk/lib/Core/Resolver.cpp
    lld/trunk/lib/Driver/Driver.cpp
    lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp

Modified: lld/trunk/include/lld/Core/File.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/File.h?rev=262164&r1=262163&r2=262164&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/File.h (original)
+++ lld/trunk/include/lld/Core/File.h Sat Feb 27 20:22:24 2016
@@ -48,7 +48,6 @@ public:
     kindErrorObject,          ///< a error object file (.o)
     kindNormalizedObject,     ///< a normalized file (.o)
     kindMachObject,           ///< a MachO object file (.o)
-    kindELFObject,            ///< a ELF object file (.o)
     kindCEntryObject,         ///< a file for CEntries
     kindHeaderObject,         ///< a file for file headers
     kindEntryObject,          ///< a file for the entry

Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=262164&r1=262163&r2=262164&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Sat Feb 27 20:22:24 2016
@@ -341,7 +341,6 @@ bool Resolver::resolveUndefines() {
     case File::kindErrorObject:
     case File::kindNormalizedObject:
     case File::kindMachObject:
-    case File::kindELFObject:
     case File::kindCEntryObject:
     case File::kindHeaderObject:
     case File::kindEntryObject:

Modified: lld/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/Driver.cpp?rev=262164&r1=262163&r2=262164&view=diff
==============================================================================
--- lld/trunk/lib/Driver/Driver.cpp (original)
+++ lld/trunk/lib/Driver/Driver.cpp Sat Feb 27 20:22:24 2016
@@ -103,7 +103,6 @@ bool Driver::link(LinkingContext &ctx, r
 
   // Give target a chance to postprocess input files.
   // Mach-O uses this chance to move all object files before library files.
-  // ELF adds specific undefined symbols resolver.
   ctx.finalizeInputFiles();
 
   // Do core linking.

Modified: lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp?rev=262164&r1=262163&r2=262164&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp (original)
+++ lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp Sat Feb 27 20:22:24 2016
@@ -229,7 +229,6 @@ public:
 enum FileKinds {
   fileKindObjectAtoms, // atom based object file encoded in yaml
   fileKindArchive,     // static archive library encoded in yaml
-  fileKindObjectELF,   // ELF object files encoded in yaml
   fileKindObjectMachO  // mach-o object files encoded in yaml
 };
 
@@ -518,7 +517,6 @@ template <> struct ScalarEnumerationTrai
   static void enumeration(IO &io, FileKinds &value) {
     io.enumCase(value, "object",        fileKindObjectAtoms);
     io.enumCase(value, "archive",       fileKindArchive);
-    io.enumCase(value, "object-elf",    fileKindObjectELF);
     io.enumCase(value, "object-mach-o", fileKindObjectMachO);
   }
 };




More information about the llvm-commits mailing list