Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread NAKAMURA Takumi via cfe-commits
chapuni added a subscriber: chapuni. chapuni added a comment. FYI :) --- a/clang/test/CoverageMapping/unused_function.cpp +++ b/clang/test/CoverageMapping/unused_function.cpp @@ -3,34 +3,34 @@ #define START_SCOPE { #define END_SCOPE } -// CHECK: _Z2f0v: +// CHECK:

Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread Igor Kudrin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271969: [Coverage] Fix an assertion failure if the definition of an unused function… (authored by ikudrin). Changed prior to commit: http://reviews.llvm.org/D20997?vs=59806=59818#toc Repository: rL

Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread Vedant Kumar via cfe-commits
vsk accepted this revision. vsk added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D20997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread Igor Kudrin via cfe-commits
ikudrin updated the summary for this revision. ikudrin removed rL LLVM as the repository for this revision. ikudrin updated this revision to Diff 59806. ikudrin added a comment. - Use `StartFileID` and `EndFileID` variables to eliminate redundant calls to `SM.getFileID()`. - Add comment strings

Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread Vedant Kumar via cfe-commits
vsk added a comment. Thanks, this looks good overall. I just have a few minor comments. Comment at: lib/CodeGen/CoverageMappingGen.cpp:329 @@ +328,3 @@ + FileID ParentFile = SM.getFileID(Start); + while (ParentFile != SM.getFileID(End) && !isNestedIn(End, ParentFile))

[PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-04 Thread Igor Kudrin via cfe-commits
ikudrin created this revision. ikudrin added reviewers: vsk, bogner, davidxl. ikudrin added a subscriber: cfe-commits. ikudrin set the repository for this revision to rL LLVM. We had an assertion failure if, for example, the definition of an unused inline function starts in one macro and ends in