Skip to content
  1. Jan 30, 2015
    • Rui Ueyama's avatar
      Remove useless DEBUG_WITH_TYPE. · 9ee161ea
      Rui Ueyama authored
      We have a DEBUG_TYPE macro for the same debug string already
      at the beginning of the file.
      
      llvm-svn: 227551
      9ee161ea
    • Rui Ueyama's avatar
      Replace SimpleFileWrapper with a function. · 78e2a2df
      Rui Ueyama authored
      SimpleFileWrapper was a class to wrap an existing (possibly non-mutable)
      file as a mutable file. We used instances of the class in RoundTrip*
      passes, because the passes convert mutable files to non-mutable files,
      and we needed to convert them back to mutable.
      
      That feature can be implemented without defining a new class. Generally
      speaking, if we can implement a feature without defining a class and
      using only public interface of exsiting classes, that's preferred way
      to do that. And this is the case.
      
      llvm-svn: 227549
      78e2a2df
    • Rui Ueyama's avatar
      Remove unused parameter. · 9b8aeefb
      Rui Ueyama authored
      llvm-svn: 227536
      9b8aeefb
  2. Jan 21, 2015
    • Greg Fitzgerald's avatar
      Fix five of the shared library build targets · 4b6a7e35
      Greg Fitzgerald authored
      Before this patch there was a cyclic dependency between lldCore and
      lldReaderWriter.  Only lldConfig could be built as a shared library.
      
      * Moved Reader and Writer base classes into lldCore.
      * The following shared libraries can now be built:
           lldCore
           lldYAML
           lldNative
           lldPasses
           lldReaderWriter
      
      Differential Revision: http://reviews.llvm.org/D7105
      
      From: Greg Fitzgerald <garious@gmail.com>
      llvm-svn: 226732
      4b6a7e35
  3. Jan 15, 2015
  4. Jan 14, 2015
  5. Jan 13, 2015
  6. Dec 12, 2014
    • Rui Ueyama's avatar
      Make File always take the ownership of a MemoryBuffer. · 961f43fb
      Rui Ueyama authored
      The documentation of parseFile() said that "the resulting File
      object may take ownership of the MemoryBuffer." So, whether or not
      the ownership of a MemoryBuffer would be taken was not clear.
      A FileNode (a subclass of InputElement, which is being deprecated)
      keeps the ownership if a File doesn't take it.
      
      This patch makes File always take the ownership of a buffer.
      Buffers lifespan is not always the same as File instances.
      Files are able to deallocate buffers after parsing the contents.
      
      llvm-svn: 224113
      961f43fb
  7. Oct 18, 2014
  8. Jul 06, 2014
  9. Jun 12, 2014
  10. Jun 11, 2014
  11. Jun 03, 2014
    • Rui Ueyama's avatar
      Rename FileToMutable -> SimpleFileWrapper. · 009f91a9
      Rui Ueyama authored
      FileToMutable is what this class does, but this class (or, to be precise,
      an instance of this class) is a wrapper of the other SimpleFile. It's odd
      that the class was named like a function.
      
      llvm-svn: 210089
      009f91a9
  12. Apr 22, 2014
  13. Mar 13, 2014
    • Ahmed Charles's avatar
      Replace OwningPtr with std::unique_ptr. · 13c70b6d
      Ahmed Charles authored
      This results in some simplifications to the code where an OwningPtr had to
      be used with the previous api and then ownership moved to a unique_ptr for
      the rest of lld.
      
      llvm-svn: 203809
      13c70b6d
  14. Mar 03, 2014
  15. Dec 20, 2013
  16. Dec 19, 2013
    • Nick Kledzik's avatar
      [lld] fix unused variable warning in non-debug builds · a1a22edd
      Nick Kledzik authored
      llvm-svn: 197732
      a1a22edd
    • Nick Kledzik's avatar
      [lld] Introduce registry and Reference kind tuple · e5552777
      Nick Kledzik authored
      The main changes are in:
        include/lld/Core/Reference.h
        include/lld/ReaderWriter/Reader.h
      Everything else is details to support the main change.
      
      1) Registration based Readers
      Previously, lld had a tangled interdependency with all the Readers.  It would
      have been impossible to make a streamlined linker (say for a JIT) which
      just supported one file format and one architecture (no yaml, no archives, etc).
      The old model also required a LinkingContext to read an object file, which
      would have made .o inspection tools awkward.
      
      The new model is that there is a global Registry object. You programmatically 
      register the Readers you want with the registry object. Whenever you need to 
      read/parse a file, you ask the registry to do it, and the registry tries each 
      registered reader.
      
      For ease of use with the existing lld code base, there is one Registry
      object inside the LinkingContext object. 
      
      
      2) Changing kind value to be a tuple
      Beside Readers, the registry also keeps track of the mapping for Reference
      Kind values to and from strings.  Along with that, this patch also fixes
      an ambiguity with the previous Reference::Kind values.  The problem was that
      we wanted to reuse existing relocation type values as Reference::Kind values.
      But then how can the YAML write know how to convert a value to a string? The
      fix is to change the 32-bit Reference::Kind into a tuple with an 8-bit namespace
      (e.g. ELF, COFFF, etc), an 8-bit architecture (e.g. x86_64, PowerPC, etc), and
      a 16-bit value.  This tuple system allows conversion to and from strings with 
      no ambiguities.
      
      llvm-svn: 197727
      e5552777
  17. Nov 19, 2013
  18. Nov 15, 2013
  19. Nov 05, 2013
  20. Oct 29, 2013
  21. Oct 24, 2013
    • Rui Ueyama's avatar
      Revert "r193300 - [PassManager] add ReaderWriter{Native, YAML} to the Driver" · 671c8013
      Rui Ueyama authored
      The patch have completely broken COFF port and disabled many tests.
      This also reverts r193302 (comment fix).
      
      llvm-svn: 193362
      671c8013
    • Shankar Easwaran's avatar
      Fix Comments. · 98673030
      Shankar Easwaran authored
      llvm-svn: 193302
      98673030
    • Shankar Easwaran's avatar
      [PassManager] add ReaderWriter{Native,YAML} to the Driver. · 89c2d8fa
      Shankar Easwaran authored
      Disable tests to be run with REQUIRES: disable. Note disable is not added to the
      config by the test runner Mkaefiles, so essentially disables the test.
      
      Code changes would be required to fix these tests :-
      
      test/darwin/hello-world.objtxt
      test/elf/check.test
      test/elf/phdr.test
      test/elf/ppc.test
      test/elf/undef-from-main-dso.test
      test/elf/X86_64/note-sections-ro_plus_rw.test
      test/pecoff/alignment.test
      test/pecoff/base-reloc.test
      test/pecoff/bss-section.test
      test/pecoff/drectve.test
      test/pecoff/dynamic.test
      test/pecoff/dynamicbase.test
      test/pecoff/entry.test
      test/pecoff/hello.test
      test/pecoff/imagebase.test
      test/pecoff/importlib.test
      test/pecoff/lib.test
      test/pecoff/multi.test
      test/pecoff/reloc.test
      test/pecoff/weak-external.test
      
      llvm-svn: 193300
      89c2d8fa
Loading