Skip to content
  1. Jan 17, 2015
  2. Jan 16, 2015
    • David Blaikie's avatar
      Isolate test for PR22096 to clang. · 71fb83ea
      David Blaikie authored
      Emitting inlinable calls without debug locations (in functions with
      debug info, to functions with debug info) is problematic for debug info
      when inlining occurs. Test specifically that we don't do that in this
      case - thus the test isn't simply "don't crash", it's "include debug
      location for this call" (granted it's the wrong location - fix for that
      is coming)
      
      llvm-svn: 226337
      71fb83ea
    • Rui Ueyama's avatar
      [PATCH] Speculatively instantiate archive members · 3a8d7e2f
      Rui Ueyama authored
      LLD parses archive file index table only at first. When it finds a symbol
      it is looking for is defined in a member file in an archive file, it actually
      reads the member from the archive file. That's done in the core linker.
      
      That's a single-thread process since the core linker is single threaded.
      If your command line contains a few object files and a lot of archive files
      (which is quite often the case), LLD hardly utilizes hardware parallelism.
      
      This patch improves parallelism by speculatively instantiating archive
      file members. At the beginning of the core linking, we first create a map
      containing all symbols defined in all members, and each time we find a
      new undefined symbol, we instantiate a member file containing the
      symbol (if such file exists). File instantiation is side effect free, so this
      should not affect correctness.
      
      This is a quick benchmark result. Time to link self-link LLD executable:
      
      Linux   9.78s -> 8.50s (0.86x)
      Windows 6.18s -> 4.51s (0.73x)
      
      http://reviews.llvm.org/D7015
      
      llvm-svn: 226336
      3a8d7e2f
    • Saleem Abdulrasool's avatar
      PE/COFF: rework how we handle base relocations · 0e69c38d
      Saleem Abdulrasool authored
      Generalise the base relocation handling slightly to support multiple base
      relocation types in PE/COFF.  This is necessary to generate proper executables
      for WoA.
      
      Track the base relocation type from the decision that we need a base relocation
      to the point where we emit the base relocation into base relocation directory.
      
      Remove an outdated TODO item while in the area.
      
      llvm-svn: 226335
      0e69c38d
    • Kaelyn Takata's avatar
      Fix a case where delayed typo correction should have resolved an · ae9e97c9
      Kaelyn Takata authored
      ambiguity but wasn't.
      
      In the new test case, "click" wasn't being corrected properly because
      Sema::ClassifyName would call CorrectTypo for "click" then later
      Sema::DiagnoseEmptyLookup would call CorrectTypoDelayed for the same use
      of "click" (the former by the parser needing to determine what the
      identifier is so it knows how to parse the statement, i.e. is it the
      beginning of a declaration or an expression). CorrectTypo would record
      that typo correction for "click" failed and CorrectTypoDelayed would see
      that and not even try to correct the typo, even though in this case
      CorrectTypo failed due to an ambiguity (both "Click" and "clock" having
      an edit distance of one from "click") that could be resolved with more
      information. The fix is two-fold:
        1) Have CorrectTypo not record failed corrections if the reason for
           the failure was two or more corrections with the same edit
           distance, and
        2) Make the CorrectionCandidateCallback used by
           Parser::ParseCastExpression reject FunctionDecl candidates when the
           next token after the identifier is a ".", "=", or "->" since
           functions cannot be assigned to and do not have members that can be
           referenced.
      
      The reason for two correction spots is that from r222549 until r224375
      landed, the first correction attempt would fail completely but the
      second would suggest "clock" while having the note point to the
      declaration of "Click".
      
      llvm-svn: 226334
      ae9e97c9
    • Matt Arsenault's avatar
      R600: Clean up floor tests · 76723d73
      Matt Arsenault authored
      These were using different naming schemes,
      not using multiple check prefixes and not using
      -LABEL.
      
      llvm-svn: 226333
      76723d73
    • Kevin Enderby's avatar
      Fix the Archive::Child::getRawSize() method used by llvm-objdump’s -archive-headers option · c1271893
      Kevin Enderby authored
      and tweak its use in llvm-objdump.  Add back the test case for the -archive-headers option.
      
      llvm-svn: 226332
      c1271893
    • Eric Christopher's avatar
      Remove pathname dependence. Also rewrite test to use FileCheck · 49b425d9
      Eric Christopher authored
      at the same time.
      
      Patch by David Callahan.
      
      llvm-svn: 226331
      49b425d9
Loading