Skip to content
  1. Jul 22, 2013
    • Shuxin Yang's avatar
      Initialize/Register LTO passes to enable flags like -print-after=<lto-pass> · 1e6d80e2
      Shuxin Yang authored
      There already have two "dead" functions, initialize{IPO|IPA}, defined for 
      similar purpose. I decide not to call these two functions for two reasons:
        o. they don't cover all LTO passes (which will soon be separated into IPO 
           and post-IPO passes)
        o. We have not yet figured out the right passes and the ordering for IPO 
           and post-IPO stages, meaning this change is only for the time being.
      
      Since LTO passes are registered, we are now able to print IR before and 
      after particular point.
      
      For OSX users:
      --------------
        "...-Wl,-mllvm -Wl,-print-after=<pass-name>" will print IR after the
        specified pass.
      
      For Other UNIX with GNU gold linker:
      ------------------------------------
        "-Wl,-plugin-opt=-print-after=<pass-name>" should work.
        (NOTE: no need for "-Wl,-mllvm")
      
        Strip "-Wl," if flags are fed directly to linker instead of clang/clang++.
      
      llvm-svn: 186853
      1e6d80e2
    • Rafael Espindola's avatar
      Replace archive members in the old position. · 623c3d84
      Rafael Espindola authored
      This matches gnu archive behavior and since archive member order can change
      which member is used, not changing the order on replacement looks like the
      right thing to do.
      
      This patch also refactors the logic for which archive member to keep and
      whether to move it to a helper function (computeInsertAction). The
      nesting in computeNewArchiveMembers was getting a bit confusing.
      
      llvm-svn: 186829
      623c3d84
  2. Jul 21, 2013
  3. Jul 20, 2013
  4. Jul 19, 2013
    • Rafael Espindola's avatar
      Fix inserting new elements in a specified location. · fcc3a1a9
      Rafael Espindola authored
      We were only handling the 'a' and 'b' options during moves before.
      
      llvm-svn: 186721
      fcc3a1a9
    • Tim Northover's avatar
      Improve llvm-mc disassembler mode and refactor ARM tests to use it · 48cf6cc4
      Tim Northover authored
      This allows "llvm-mc -disassemble" to accept two new features:
        + Using comma as a byte separator
        + Grouping bytes with '[' and ']' pairs.
      
      The behaviour outside a [...] group is unchanged. But within the group once
      llvm-mc encounters a true error, it stops rather than trying to resynchronise
      the stream at the next byte. This is more useful for disassembly tests, where
      we have an almost-instruction in mind and don't care what the misaligned
      interpretation would be. Particularly if it means llvm-mc won't actually see
      the next intended almost-instruction.
      
      As a side effect, this means llvm-mc can disassemble its own -show-encoding
      output if copy-pasted.
      
      llvm-svn: 186661
      48cf6cc4
    • Rui Ueyama's avatar
      Revert "COFFDumper: Dump data directory entries." · f3882430
      Rui Ueyama authored
      Because it broke s390x and ppc64-linux buildbots. This reverts commit r186623.
      
      llvm-svn: 186627
      f3882430
    • Rui Ueyama's avatar
      COFFDumper: Dump data directory entries. · a20b9f52
      Rui Ueyama authored
      Summary:
      Dump optional data directory entries in the PE/COFF header, so that
      we can test the output of LLD linker. This patch updates the test binary
      file, but the source of the binary is the same. I just re-linked the file.
      I don't know how the previous file was linked, but the previous file did
      not have any data directory entries for some reason.
      
      Reviewers: rafael
      
      CC: llvm-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1148
      
      llvm-svn: 186623
      a20b9f52
  5. Jul 17, 2013
  6. Jul 16, 2013
  7. Jul 13, 2013
  8. Jul 12, 2013
    • Rafael Espindola's avatar
      fix autoconf build · c61cab8b
      Rafael Espindola authored
      llvm-svn: 186200
      c61cab8b
    • Rafael Espindola's avatar
      Fix the build with c++03. · 023e6561
      Rafael Espindola authored
      llvm-svn: 186198
      023e6561
    • Rafael Espindola's avatar
      Change llvm-ar to use lib/Object. · 3e2b21cd
      Rafael Espindola authored
      This fixes two bugs is lib/Object that the use in llvm-ar found:
      * In OS X created archives, the name can be padded with nulls. Strip them.
      * In the constructor, remember the first non special member and use that in
        begin_children. This makes sure we skip all special members, not just the
        first one.
      
      The change to llvm-ar itself consist of
      * Using lib/Object for reading archives instead of ArchiveReader.cpp.
      * Writing the modified archive directly, instead of creating an in memory
        representation.
      
      The old Archive library was way more general than what is needed, as can
      be seen by the diffstat of this patch.
      
      Having llvm-ar using lib/Object now opens the way for creating regular symbol
      tables for both native objects and bitcode files so that we can use those
      archives for LTO.
      
      llvm-svn: 186197
      3e2b21cd
    • Rafael Espindola's avatar
      Add static. · 05571531
      Rafael Espindola authored
      llvm-svn: 186170
      05571531
    • Benjamin Kramer's avatar
      llvm-ar: Clean up memory management with OwningPtr. · 64caeb7c
      Benjamin Kramer authored
      llvm-svn: 186131
      64caeb7c
  9. Jul 11, 2013
  10. Jul 10, 2013
  11. Jul 09, 2013
  12. Jul 08, 2013
  13. Jul 06, 2013
Loading