Skip to content
  1. Mar 02, 2013
  2. Mar 01, 2013
    • Fariborz Jahanian's avatar
      comment parsing. Keep the original command format · d4996360
      Fariborz Jahanian authored
      in AST for source fidelity and use it in diagnostics 
      to refer to the original format. // rdar://13066276
      
      llvm-svn: 176387
      d4996360
    • Argyrios Kyrtzidis's avatar
      In llvm::MemoryBuffer::getFile() remove an unnecessary stat call check. · db4443f7
      Argyrios Kyrtzidis authored
      The sys::fs::is_directory() check is unnecessary because, if the filename is
      a directory, the function will fail anyway with the same error code returned.
      Remove the check to avoid an unnecessary stat call.
      
      Someone needs to review on windows and see if the check is necessary there or not.
      
      llvm-svn: 176386
      db4443f7
    • Stefanus Du Toit's avatar
      Fix my email address in CREDITS.TXT. · 1ed16946
      Stefanus Du Toit authored
      Checking to see if svn notifications also use correct address now.
      
      llvm-svn: 176385
      1ed16946
    • Akira Hatanaka's avatar
      [mips] Fix inefficient code generation. · ece459bb
      Akira Hatanaka authored
      This patch eliminates the need to emit a constant move instruction when this
      pattern is matched:
      
      (select (setgt a, Constant), T, F)
      
      The pattern above effectively turns into this:
      
      (conditional-move (setlt a, Constant + 1), F, T)
      
      llvm-svn: 176384
      ece459bb
    • Stefanus Du Toit's avatar
      Fix typos: [Dd]iagnosic -> [Dd]iagnostic · b3318501
      Stefanus Du Toit authored
      These all appear in comments or (ironically) diagnostics output.
      
      llvm-svn: 176383
      b3318501
    • Jean-Luc Duprat's avatar
      3cec0108
    • Eli Bendersky's avatar
      Rewrite a test to count emitted instructions without using -stats · 0091e2ff
      Eli Bendersky authored
      Also removed the comments of "should produce..." because they completely
      don't match the actually produced output.
      
      llvm-svn: 176381
      0091e2ff
    • Akira Hatanaka's avatar
      Fix indentation. · a4c03415
      Akira Hatanaka authored
      llvm-svn: 176380
      a4c03415
    • Edwin Vane's avatar
      Avoid parallelism problems generating lit.site.cfgs · a98217a2
      Edwin Vane authored
      extra/test/cpp11-migrate/Makefile was using the same tmp file for generating
      lit.site.cfg for two different directories. Parallelism caused conflicts so now
      using differently named temp files.
      
      llvm-svn: 176379
      a98217a2
    • Akira Hatanaka's avatar
      Set properties for f128 type. · 3d055580
      Akira Hatanaka authored
      llvm-svn: 176378
      3d055580
    • Eli Bendersky's avatar
      Rewrite a test to check actual output rather than intermediate implementation · 10ab5e72
      Eli Bendersky authored
      detail.
      
      The was this test was written, it was relying on an implementation detail
      (fixups) and hence was very brittle (relying, among other things, on the
      exact ordering of statistics printed by MC).
      
      The test was rewritten to check a more observable output difference. While it
      doesn't cover 100% of the things the original test covered, it's a good
      practice to write regression tests this way. If we want to check that
      internal details and invariants hold, such tests should be expressed as unit
      tests.
      
      llvm-svn: 176377
      10ab5e72
    • Stefanus Du Toit's avatar
      cpp11-migrate: Reduce the number of parsing passes. · e9779bbe
      Stefanus Du Toit authored
      Previously we would check the syntax of the file before we transform
      it, but that's redundant since it'll be checked as part of the
      transformation. Remove that check completely.
      
      We also had an unconditional syntax check after transforming. This
      is only really useful to debug cpp11-migrate, since users will end
      up compiling the transformed source anyways, and the transformations
      *should* never introduce a failure. Made this an option, accessible
      via "-final-syntax-check".
      
      Resolves PR 15380.
      
      llvm-svn: 176376
      e9779bbe
    • Jim Ingham's avatar
      Move m_destroy_in_process to Process (from ProcessKDP) since it is generally useful, · 0943792a
      Jim Ingham authored
      and use it to keep from doing the OS Plugin UpdateThreadList while destroying, since
      if that does anything that requires the API lock it may deadlock against whoever is
      running the Process::Destroy.
      
      <rdar://problem/13308627>
      
      llvm-svn: 176375
      0943792a
    • Edwin Vane's avatar
      No need to force-create clang-tools-extra lit.site.cfg · 510c3415
      Edwin Vane authored
      The make (all) target takes care of creating lit configs and auto-generating
      tests. The problem with the original 'lit.site.cfg' target is it's not
      recursive and doesn't fully create everything necessary for testing
      clang-tools-extra.
      
      llvm-svn: 176374
      510c3415
    • Edwin Vane's avatar
      Fix recursive make in clang-tools-extra · b1bb4c2d
      Edwin Vane authored
      Autoconf make (all) now properly recurses from tools/extra/Makefile into
      tools/extra/test/Makefile and tools/extra/test/cpp11-migrate/Makefile. The
      'all' target is responsible for creating lit config files and autogenerating
      tests. Subsequent 'check-all' targets will properly work.
      
      Re-enabling UseAuto/iterator.cpp test.
      
      General clean-up of clang-tools-extra makefiles; removing dead targets and
      removing duplicated pieces of llvm/Makefile.rules.
      
      llvm-svn: 176373
      b1bb4c2d
    • Stefanus Du Toit's avatar
      cpp11-migrate: Factor out duplicate code in UseNullPtr · 16994972
      Stefanus Du Toit authored
      This moves the actual replacement code into a separate
      function. There is still a bit of code duplication to
      go from macros to expansion areas, but that code will
      need to be fixed anyways to resolve bugs around macro
      replacement.
      
      Reviewed by: Tareq Siraj, Edwin Vane
      
      llvm-svn: 176372
      16994972
    • Jordan Rose's avatar
      [analyzer] Suppress paths involving a reference whose rvalue is null. · 801916ba
      Jordan Rose authored
      Most map types have an operator[] that inserts a new element if the key
      isn't found, then returns a reference to the value slot so that you can
      assign into it. However, if the value type is a pointer, it will be
      initialized to null. This is usually no problem.
      
      However, if the user /knows/ the map contains a value for a particular key,
      they may just use it immediately:
      
         // From ClangSACheckersEmitter.cpp
         recordGroupMap[group]->Checkers
      
      In this case the analyzer reports a null dereference on the path where the
      key is not in the map, even though the user knows that path is impossible
      here. They could silence the warning by adding an assertion, but that means
      splitting up the expression and introducing a local variable. (Note that
      the analyzer has no way of knowing that recordGroupMap[group] will return
      the same reference if called twice in a row!)
      
      We already have logic that says a null dereference has a high chance of
      being a false positive if the null came from an inlined function. This
      patch simply extends that to references whose rvalues are null as well,
      silencing several false positives in LLVM.
      
      <rdar://problem/13239854>
      
      llvm-svn: 176371
      801916ba
    • Shankar Easwaran's avatar
      move dynamic linking atoms to Atoms.h · b0e356e2
      Shankar Easwaran authored
      llvm-svn: 176370
      b0e356e2
    • Michael Liao's avatar
      Add regression tests (WORKSFORME) · d10584e3
      Michael Liao authored
      - These tests wont't crash on trunk but would be better to add them so that
        they don't break again in the future.
      
      llvm-svn: 176369
      d10584e3
Loading