Skip to content
  1. Jan 05, 2013
    • Chandler Carruth's avatar
      Provide a default constructor for TimeValue. This was used, but only in · e46cf6c5
      Chandler Carruth authored
      if-ed out code paths and on Windows. Hopefully restores the Windows
      build. Thanks to Reid Kleckner for helping triage this.
      
      llvm-svn: 171568
      e46cf6c5
    • Alex Rosenberg's avatar
      Fix warnings from llvm-gcc as seen on darwin10 (10.6). · 0d6ecec6
      Alex Rosenberg authored
      llvm-svn: 171567
      0d6ecec6
    • Daniel Malea's avatar
      Simplify build instructions · 1e6764b4
      Daniel Malea authored
      - setting PYTHONPATH is no longer needed to run the lldb CLI on Linux.
      - added instructions for setting PYTHONPATH correctly for running scripts in the native interpreter
      
      llvm-svn: 171566
      1e6764b4
    • Chandler Carruth's avatar
      Try to suppress the use of clock_gettime on Darwin which apparantly · 2aaec89f
      Chandler Carruth authored
      defines _POSIX_CPUTIME but doesn't support the clock_* functions.
      
      I don't test the value of _POSIX_CPUTIME because the spec merely says
      that if it is defined, the CPU-specific timers are available, whereas it
      says that _POSIX_TIMERS must be defined and defined to a value greater
      than zero. However, this may not work, as the POSIX spec clearly states:
      
        "If the symbolic constant _POSIX_CPUTIME is defined, then the symbolic
        constant _POSIX_TIMERS shall also be defined by the implementation to
        have the value 200112L."
      
      If this doesn't work, I'll add more hacks for Darwin.
      
      llvm-svn: 171565
      2aaec89f
    • Manman Ren's avatar
      Fix testing case for Release build (r171493) · cf15a4e9
      Manman Ren authored
      rdar://11562117
      
      llvm-svn: 171564
      cf15a4e9
    • Jason Molenda's avatar
      <rdar://problem/12389806> · 7a37c1ec
      Jason Molenda authored
      Have the disassembler's Instruction::Dump always insert at least
      one space character between an opcode and its arguments, don't let
      a long opcode name abut the arguments.
      
      llvm-svn: 171561
      7a37c1ec
    • Ted Kremenek's avatar
      Update checker build to checker-270 · a49cf107
      Ted Kremenek authored
      llvm-svn: 171560
      a49cf107
    • Chandler Carruth's avatar
      b79a7aa5
    • Daniel Malea's avatar
      Fix lldb -P on Linux · 53430eb8
      Daniel Malea authored
      - now prints the correct PYTHONPATH
      - update dotest.py to use lldb -P result correctly
      - resolves TestPublicAPIHeaders test failure (on Linux)
      
      llvm-svn: 171558
      53430eb8
    • Michael J. Spencer's avatar
      [Driver] Add x86-64 target. · bc7f2a73
      Michael J. Spencer authored
      llvm-svn: 171557
      bc7f2a73
    • Manuel Klimek's avatar
      Various fixes to clang-format's macro handling. · 1abf789c
      Manuel Klimek authored
      Some of this is still pretty rough (note the load of FIXMEs), but it is
      strictly an improvement and fixes various bugs that were related to
      macro processing but are also imporant in non-macro use cases.
      
      Specific fixes:
      - correctly puts espaced newlines at the end of the line
      - fixes counting of white space before a token when escaped newlines are
        present
      - fixes parsing of "trailing" tokens when eof() is hit
      - puts macro parsing orthogonal to parsing other structure
      - general support for parsing of macro definitions
      
      Due to the fix to format trailing tokens, this change also includes a
      bunch of fixes to the c-index tests.
      
      llvm-svn: 171556
      1abf789c
    • Fariborz Jahanian's avatar
      objective-C arc: in copy helper function for · a82e9265
      Fariborz Jahanian authored
      __strong __block variables, perform objc_storeStrong on
      source and destination instead of direct move. This 
      is done with -O0 and to improve some analysis.
      // rdar://12530881
      
      llvm-svn: 171555
      a82e9265
    • Andrew Kaylor's avatar
    • Bill Wendling's avatar
      Get rid of the 'Bits' mask in the attribute builder. · cd330348
      Bill Wendling authored
      The bit mask thing will be a thing of the past. It's not extensible enough. Get
      rid of its use here. Opt instead for using a vector to hold the attributes.
      
      Note: Some of this code will become obsolete once the rewrite is further along.
      llvm-svn: 171553
      cd330348
    • Sean Callanan's avatar
      Read bytes from zero-filled sections correctly · ecda2b2d
      Sean Callanan authored
      instead of failing to read.
      
      <rdar://problem/12958589>
      
      llvm-svn: 171552
      ecda2b2d
    • Chandler Carruth's avatar
      Add time getters to the process interface for requesting the elapsed · ef7f968e
      Chandler Carruth authored
      wall time, user time, and system time since a process started.
      
      For walltime, we currently use TimeValue's interface and a global
      initializer to compute a close approximation of total process runtime.
      
      For user time, this adds support for an somewhat more precise timing
      mechanism -- clock_gettime with the CLOCK_PROCESS_CPUTIME_ID clock
      selected.
      
      For system time, we have to do a full getrusage call to extract the
      system time from the OS. This is expensive but unavoidable.
      
      In passing, clean up the implementation of the old APIs and fix some
      latent bugs in the Windows code. This might have manifested on Windows
      ARM systems or other systems with strange 64-bit integer behavior.
      
      The old API for this both user time and system time simultaneously from
      a single getrusage call. While this results in fewer system calls, it
      also results in a lower precision user time and if only user time is
      desired, it introduces a higher overhead. It may be worthwhile to switch
      some of the pass timers to not track system time and directly track user
      and wall time. The old API also tracked walltime in a confusing way --
      it just set it to the current walltime rather than providing any measure
      of wall time since the process started the way buth user and system time
      are tracked. The new API is more consistent here.
      
      The plan is to eventually implement these methods for a *child* process
      by using the wait3(2) system call to populate an rusage struct
      representing the whole subprocess execution. That way, after waiting on
      a child process its stats will become accurate and cheap to query.
      
      llvm-svn: 171551
      ef7f968e
    • Andrew Trick's avatar
      tabs-to-spaces · 18021a45
      Andrew Trick authored
      llvm-svn: 171550
      18021a45
    • Jakub Staszak's avatar
      Move 'break' to the right place to prevent fallthru. There is no test-case · 43fafaf4
      Jakub Staszak authored
      because conditions in the next case prevented from doing anything nasty.
      
      llvm-svn: 171549
      43fafaf4
  2. Jan 04, 2013
Loading