Skip to content
  1. Aug 05, 2013
  2. Aug 04, 2013
  3. Aug 03, 2013
  4. Aug 02, 2013
    • Manuel Klimek's avatar
      Implement Allman style. · d3ed59ae
      Manuel Klimek authored
      Patch by Frank Miller.
      
      llvm-svn: 187678
      d3ed59ae
    • Rui Ueyama's avatar
      [PECOFF] Handle .drectve section. · 4ecc59af
      Rui Ueyama authored
      Summary:
      The .drectve section contains linker command line options, and the linker is
      expected to interpret them as if they were given via the command line. In this
      patch, the command line parser in the driver is called from the object file
      reader to parse the string.
      
      I think this patch is important, because this is the first step towards mutable
      TargetInfo. We had a discussion about that on llvm-commits mailing list before.
      I haven't removed "const" from the function signature yet. Instead, I just use
      cast to remove "const". This is a temporary aid for an experiment. If we don't
      see any issue with this mutable TargetInfo appraoch, I'll change the function
      signature, and rename the class LinkerContext from TargetInfo.
      
      Reviewers: kledzik
      
      CC: llvm-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1246
      
      llvm-svn: 187677
      4ecc59af
    • Manuel Klimek's avatar
      Fix crash when encountering alias templates in isDerivedFrom matches. · 1863e505
      Manuel Klimek authored
      - pull out function to drill to the CXXRecordDecl from the type,
        to allow recursive resolution
      - make the analysis more robust by rather skipping values we don't
        understand
      
      llvm-svn: 187676
      1863e505
    • Hans Wennborg's avatar
      Option parsing: recognize the special -- token · b8f3420d
      Hans Wennborg authored
      Everything that comes after -- should be treated as a filename. This
      enables passing in filenames that would otherwise be conflated with
      command-line options.
      
      This is especially important for clang-cl which supports options
      starting with /, which are easily conflatable with Unix-style
      path names.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1274
      
      llvm-svn: 187675
      b8f3420d
    • Hal Finkel's avatar
      Fix invalid function pointers in bugpoint ExtractLoops · e9efbf14
      Hal Finkel authored
      The ExtractLoops function tries to reduce the failing test case by extracting
      one or more loops from the misoptimized piece of the program. In doing this,
      ExtractLoops must keep the MiscompiledFunctions vector up-to-date by ensuring
      that the pointers refer to functions in the current failing program.
      Unfortunately, this is not trivial because:
      
       - ExtractLoops is iterative, and there are several early exits (and the
         MiscompiledFunctions vector must be consistent with the current program at
      every non-fatal exit point).
       - Several of the utility functions used by ExtractLoops (such as
         TestOptimizer, some of which are called through the TestFn callback
      parameter, and Linker::LinkModules) delete their inputs upon success.
      
      This change adds several updates of the MiscompiledFunctions vector at
      different points. The first is after the initial call to TestMergedProgram
      which checks that the loop-extracted program still works. The second is after
      the call to TestFn (TestOptimizer, for example). This function will delete its
      inputs (which is why the existing ExtractLoops logic cloned the inputs first).
      
      llvm-svn: 187674
      e9efbf14
    • Rui Ueyama's avatar
      [PECOFF] Return an error_code instead of calling report_fatal_error(). · f29065d0
      Rui Ueyama authored
      For an invalid input we should not call report_fatal_error(), because
      when LLD is used as a library, we don't want to kill the whole app
      because of a malformed input.
      
      llvm-svn: 187673
      f29065d0
    • Fariborz Jahanian's avatar
      ObjectiveC migrator: Add another family of factory · 9275c688
      Fariborz Jahanian authored
      methods which can be migrated to instancetype.
      
      llvm-svn: 187672
      9275c688
Loading