Skip to content
  1. Jun 29, 2016
  2. Jun 28, 2016
  3. Jun 27, 2016
    • Kevin Enderby's avatar
      Change all but the last ErrorOr<...> use for MachOUniversalBinary to Expected<...> to · 1051909d
      Kevin Enderby authored
      allow a good error message to be produced.
      
      I added the one test case that the object file tools could produce an error
      message.  The other two errors can’t be triggered if the input file is passed
      through sys::fs::identify_magic().  But the malformedError("bad magic number")
      does get triggered by the logic in llvm-dsymutil when dealing with a normal
      Mach-O file.  The other "File too small ..." error would take a logic error
      currently to produce and is not tested for.
      
      llvm-svn: 273946
      1051909d
    • Davide Italiano's avatar
      [llvm-ar] Ignore -plugin option. · 9ffb554e
      Davide Italiano authored
      binutils ar uses -plugin to specify the LTO plugin, but LLVM doesn't
      need this as it doesn't use a plugin for LTO. Accepting (and ignoring)
      the option allows interoperability with existing build systems and
      make downstream consumers life much easier.
      
      No objections from Rafael on this change.
      
      llvm-svn: 273938
      9ffb554e
    • Chris Bieneman's avatar
      [yaml2obj] Remove --format option in favor of YAML tags · 8ff0c113
      Chris Bieneman authored
      Summary:
      Our YAML library's handling of tags isn't perfect, but it is good enough to get rid of the need for the --format argument to yaml2obj. This patch does exactly that.
      
      Instead of requiring --format, it infers the format based on the tags found in the object file. The supported tags are:
      
      !ELF
      !COFF
      !mach-o
      !fat-mach-o
      
      I have a corresponding patch that is quite large that fixes up all the in-tree test cases.
      
      Reviewers: rafael, Bigcheese, compnerd, silvas
      
      Subscribers: compnerd, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D21711
      
      llvm-svn: 273915
      8ff0c113
  4. Jun 26, 2016
  5. Jun 25, 2016
  6. Jun 24, 2016
    • Chris Bieneman's avatar
      [obj2yaml] [yaml2obj] Support for MachO Universal binaries · 93e71193
      Chris Bieneman authored
      This patch adds round-trip support for MachO Universal binaries to obj2yaml and yaml2obj. Universal binaries have a header and list of architecture structures, followed by a the individual object files at specified offsets.
      
      llvm-svn: 273719
      93e71193
    • Michael Kuperstein's avatar
      [PM] Port PreISelIntrinsicLowering to the new PM · 82d5da5a
      Michael Kuperstein authored
      llvm-svn: 273713
      82d5da5a
    • Kevin Enderby's avatar
      Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow · 931cb65d
      Kevin Enderby authored
      a good error message to be produced.
      
      This is nearly the last libObject interface that used ErrorOr and the last one
      that appears in llvm/include/llvm/Object/MachO.h .  For Mach-O objects this is
      just a clean up because it’s version of getSymbolAddress() can’t return an
      error.
      
      I will leave it to the experts on COFF and ELF to actually add meaning full
      error messages in their tests if they wish.  And also leave it to these experts
      to change the last two ErrorOr interfaces in llvm/include/llvm/Object/ObjectFile.h
      for createCOFFObjectFile() and createELFObjectFile() if they wish.
      
      Since there are no test cases for COFF and ELF error cases with respect to
      getSymbolAddress() in the test suite this is no functional change (NFC).
      
      llvm-svn: 273701
      931cb65d
    • Vedant Kumar's avatar
      [llvm-cov] Fix two warnings · 2c96e88e
      Vedant Kumar authored
      They were using output streams inconsistently. One also had a grammar
      bug.
      
      I noticed these while trying to pare down D18278.
      
      llvm-svn: 273642
      2c96e88e
    • Vedant Kumar's avatar
      [llvm-cov] Use getOptions() instead of Options in SourceCoverageView, NFC · 1c4f588d
      Vedant Kumar authored
      A lot of this code is going to move into the text-based coverage
      renderer, and won't be able to use Options directly. Use the getter.
      
      llvm-svn: 273635
      1c4f588d
    • Vedant Kumar's avatar
      [llvm-cov] Add SourceNames to SourceCoverageViews, NFC · 9d70d0b5
      Vedant Kumar authored
      A SourceName can be a file or a function. It makes sense to attach this
      information to a SourceCoverageView, seeing as views (1) already point
      to the text corresponding to the relevant source code and (2) are
      already used to render that text along with the SourceNames.
      
      This is a nice cleanup which is independent of the upcoming html patch.
      
      While we're at it, document the fields in SourceCoverageView.
      
      llvm-svn: 273634
      9d70d0b5
    • Vedant Kumar's avatar
      [llvm-cov] Rename SourceCoverageView::LineCoverageInfo to LineCoverageStats, NFC · 60dcb48a
      Vedant Kumar authored
      Pull LineCoverageInfo out of SourceCoverageView and rename it so that it
      doesn't conflict with another class of the same name in
      CoverageSummaryInfo.h.
      
      This cuts down on the amount of code we have to move into a `protected`
      section of SourceCoverageView for the upcoming html patch. It also makes
      the code a bit clearer: having two LineCoverageInfo's is strange.
      
      llvm-svn: 273633
      60dcb48a
Loading