[PATCH] Refactor parseFile API to use LinkerInput directly

Joerg Sonnenberger joerg at NetBSD.org
Wed Sep 4 07:40:28 PDT 2013


Hi Bigcheese, rui314, shankarke,

This patch replaces the MemoryBuffer argument of parseFile with LinkerInput.
readFile() is gone and the responsibility of the entity creating the LinkerInput instance.
The path argument is for diagnostics only, it could later be replaced by member path names for archives.

This replaces the majority of D1587 and has been moved out to simplify the review process.

http://llvm-reviews.chandlerc.com/D1598

Files:
  include/lld/Driver/LinkerInput.h
  include/lld/ReaderWriter/Reader.h
  include/lld/ReaderWriter/ReaderArchive.h
  include/lld/ReaderWriter/MachOLinkingContext.h
  include/lld/ReaderWriter/CoreLinkingContext.h
  include/lld/ReaderWriter/PECOFFLinkingContext.h
  include/lld/ReaderWriter/ELFLinkingContext.h
  include/lld/ReaderWriter/ReaderLinkerScript.h
  include/lld/Core/LinkingContext.h
  lib/Core/LinkingContext.cpp
  lib/Driver/DarwinLdDriver.cpp
  lib/Driver/GnuLdDriver.cpp
  lib/Driver/WinLinkDriver.cpp
  lib/Driver/Driver.cpp
  lib/Driver/CoreDriver.cpp
  lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
  lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
  lib/ReaderWriter/ELF/Reader.cpp
  lib/ReaderWriter/ReaderLinkerScript.cpp
  lib/ReaderWriter/Reader.cpp
  lib/ReaderWriter/ReaderArchive.cpp
  lib/ReaderWriter/Native/ReaderNative.cpp
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  lib/ReaderWriter/CoreLinkingContext.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1598.1.patch
Type: text/x-patch
Size: 27428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130904/0ac5fa53/attachment.bin>


More information about the llvm-commits mailing list