<div dir="ltr">I haven't gotten a chance to resubmit this yet, will do soon though.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-22 10:15 GMT-07:00 Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Has this been resolved? I'm trying to grind through my unread commit mail.</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 11, 2014 at 11:19 AM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>Alex Lorenz <<a href="mailto:arphaman@gmail.com" target="_blank">arphaman@gmail.com</a>> writes:<br>
> Author: arphaman<br>
> Date: Mon Aug 11 12:45:49 2014<br>
> New Revision: 215365<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=215365&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=215365&view=rev</a><br>
> Log:<br>
> Coverage mapping: emit mapping for cxx constructors that use microsoft's ABI<br>
><br>
> Modified:<br>
> cfe/trunk/lib/CodeGen/CodeGenPGO.cpp<br>
><br>
> Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.cpp<br>
> URL:<br>
> <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.cpp?rev=215365&r1=215364&r2=215365&view=diff==============================================================================" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.cpp?rev=215365&r1=215364&r2=215365&view=diff==============================================================================</a><br>
> --- cfe/trunk/lib/CodeGen/CodeGenPGO.cpp (original)<br>
> +++ cfe/trunk/lib/CodeGen/CodeGenPGO.cpp Mon Aug 11 12:45:49 2014<br>
> @@ -847,8 +847,13 @@ void CodeGenPGO::checkGlobalDecl(GlobalD<br>
> // a class. Every function is instrumented, but we only want to provide<br>
> // coverage for one of them. Because of that we only emit the coverage mapping<br>
> // for the base constructor/destructor.<br>
> + // For Microsoft's C++ ABI Clang emits only the complete constructor,<br>
> + // therefore we have to emit the coverage mapping for it instead of the base<br>
> + // one.<br>
> + const CXXCtorType AcceptedCtor =<br>
> + CGM.getTarget().getCXXABI().isMicrosoft()? Ctor_Complete : Ctor_Base;<br>
<br>
</div>There should be spaces around the ? here.<br>
<div><br>
> if ((isa<CXXConstructorDecl>(GD.getDecl()) &&<br>
> - GD.getCtorType() != Ctor_Base) ||<br>
> + GD.getCtorType() != AcceptedCtor) ||<br>
> (isa<CXXDestructorDecl>(GD.getDecl()) &&<br>
> GD.getDtorType() != Dtor_Base)) {<br>
> SkipCoverageMapping = true;<br>
<br>
</div>You should really commit the tests this is fixing along with the<br>
change. It makes life much easier for people digging through history<br>
later if code changes and tests are in the same commit.<br>
</div></div><div class=""><div><div>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></div></blockquote></div><br></div>
</blockquote></div><br></div>