Skip to content
  1. Jul 12, 2012
  2. Jul 11, 2012
    • Chad Rosier's avatar
      Fixup broken doc link. Patch by Sean Silva <silvas@purdue.edu>. · 26b8e1d0
      Chad Rosier authored
      llvm-svn: 160082
      26b8e1d0
    • Jack Carter's avatar
      This change removes an "initialization" warning. · 42ebf98b
      Jack Carter authored
      Even though variable in question could not 
      be initialized before use, the code was such that 
      the compiler had no way of knowing that.
      
      llvm-svn: 160081
      42ebf98b
    • Jim Ingham's avatar
      If we hit a breakpoint but there's a thread specifier which doesn't match this... · 54cc6e40
      Jim Ingham authored
      If we hit a breakpoint but there's a thread specifier which doesn't match this thread, return no stop reason.
      
      llvm-svn: 160080
      54cc6e40
    • Jim Ingham's avatar
      Don't call DoOnRemoval if you are just peeking at events. · 63614c92
      Jim Ingham authored
      llvm-svn: 160079
      63614c92
    • Dmitri Gribenko's avatar
      Enable comment parsing and semantic analysis to emit diagnostics. A few · f26054f0
      Dmitri Gribenko authored
      diagnostics implemented -- see testcases.
      
      I created a new TableGen file for comment diagnostics,
      DiagnosticCommentKinds.td, because comment diagnostics don't logically
      fit into AST diagnostics file.  But I don't feel strongly about it.
      
      This also implements support for self-closing HTML tags in comment
      lexer and parser (for example, <br />).
      
      In order to issue precise diagnostics CommentSema needs to know the
      declaration the comment is attached to.  There is no easy way to find a decl by 
      comment, so we match comments and decls in lockstep: after parsing one
      declgroup we check if we have any new, not yet attached comments.  If we do --
      then we do the usual comment-finding process.
      
      It is interesting that this automatically handles trailing comments.
      We pick up not only comments that precede the declaration, but also
      comments that *follow* the declaration -- thanks to the lookahead in
      the lexer: after parsing the declgroup we've consumed the semicolon
      and looked ahead through comments.
      
      Added -Wdocumentation-html flag for semantic HTML errors to allow the user to 
      disable only HTML warnings (but not HTML parse errors, which we emit as
      warnings in -Wdocumentation).
      
      llvm-svn: 160078
      f26054f0
    • Sean Callanan's avatar
      Fixed a bug that caused the Process not to rebroadcast · a46ec453
      Sean Callanan authored
      the fact that a process exited while running a thread
      plan.  For example, if a user types the expression
      
      expr (void)exit(0)
      
      then the process terminates but LLDB does not notify
      listeners like Xcode that this occurred.
      
      <rdar://problem/11845155>
      
      llvm-svn: 160077
      a46ec453
    • Stepan Dyatkovskiy's avatar
      Fixed diff comparison. · 326edc57
      Stepan Dyatkovskiy authored
      llvm-svn: 160076
      326edc57
    • Argyrios Kyrtzidis's avatar
      In MemoryBuffer::getOpenFile() don't verify that the mmap'ed · f141156e
      Argyrios Kyrtzidis authored
      file buffer is null-terminated.
      
      If the file is smaller than we thought, mmap will not allow dereferencing
      past the pages that are enough to cover the actual file size,
      even though we asked for a larger address range.
      
      rdar://11612916
      
      llvm-svn: 160075
      f141156e
    • Argyrios Kyrtzidis's avatar
      Introduce a flag in SourceManager to treat non-system source files · 6d7833f1
      Argyrios Kyrtzidis authored
      as "volatile", meaning there's a high enough chance that they may
      change while we are trying to use them.
      
      This flag is only enabled by libclang.
      Currently "volatile" source files will be stat'ed immediately
      before opening them, because the file size stat info
      may not be accurate since when we got it (e.g. from the PCH).
      This avoids crashes when trying to reference mmap'ed memory
      from a file whose size is not what we expect.
      
      Note that there's still a window for a racing issue to occur
      but the window for it should be way smaller than before.
      We can consider later on to avoid mmap completely on such files.
      
      rdar://11612916
      
      llvm-svn: 160074
      6d7833f1
    • Akira Hatanaka's avatar
      In register classes in MipsRegisterInfo.td, list the registers in ascending · bb551915
      Akira Hatanaka authored
      order of binary encoding.
      
      Patch by Vladimir Medic.
      
      llvm-svn: 160073
      bb551915
    • Greg Clayton's avatar
      Fixed an issue where if you ask to search the global list of modules for a... · f315626f
      Greg Clayton authored
      Fixed an issue where if you ask to search the global list of modules for a module with "target modules list", if it found a match in the current target, it would skip looking at the global list. Now if you ask for the global list, we use it and skip the target.
      
      llvm-svn: 160072
      f315626f
    • Greg Clayton's avatar
      <rdar://problem/11852100> · 53eb7ad2
      Greg Clayton authored
      The "stop-line-count-after" and "stop-line-count-before" settings are broken. This fixes them.
      
      llvm-svn: 160071
      53eb7ad2
    • Jordan Rose's avatar
      Start testing some commented-out cases of badly-formed __has_include. · 1fa2acae
      Jordan Rose authored
      Filed PR13334 for the cases that cause the compiler to crash, and
      PR13335 for the cases where we should be recovering more gracefully.
      
      llvm-svn: 160070
      1fa2acae
    • Chad Rosier's avatar
      [x86 fast-isel] Per discussion with Eric, add all cases to switch with verbose · 8446ede0
      Chad Rosier authored
      comments.
      
      llvm-svn: 160069
      8446ede0
    • Jordan Rose's avatar
      Allow -verify directives to be filtered by preprocessing. · b13eb8dc
      Jordan Rose authored
      This is accomplished by making VerifyDiagnosticsConsumer a CommentHandler,
      which then only reads the -verify directives that are actually in live
      blocks of code. It also makes it simpler to handle -verify directives that
      appear in header files, though we still have to manually reparse some files
      depending on how they are generated.
      
      This requires some test changes. In particular, all PCH tests now have their
      -verify directives outside the "header" portion of the file, using the @line
      syntax added in r159978. Other tests have been modified mostly to make it
      clear what is being tested, and to prevent polluting the expected output with
      the directives themselves.
      
      Patch by Andy Gibbs! (with slight modifications)
      
      The new Frontend/verify-* tests exercise the functionality of this commit,
      as well as r159978, r159979, and r160053 (Andy's other -verify enhancements).
      
      llvm-svn: 160068
      b13eb8dc
Loading