[cfe-commits] [PATCH] "-gline-tables-only" flag for Clang
Eric Christopher
echristo at apple.com
Thu May 3 12:32:54 PDT 2012
On May 1, 2012, at 8:53 AM, Alexey Samsonov <samsonov at google.com> wrote:
>
>
> On Sun, Apr 29, 2012 at 3:07 AM, Eric Christopher <echristo at apple.com> wrote:
>>
>> Sending the revised (modulo r155697) patch. Please take a look.
>>
>> Codereview: http://codereview.appspot.com/6112056/#ps9001
>
> I think about the only comment I've got is whether or not we should use comparison operators instead of == and != in these sorts of cases?
>
> - Dbg->EmitGlobalVariable(E->getDecl(), Init);
> + if (CGM.getCodeGenOpts().DebugInfo != CodeGenOptions::DebugLineTablesOnly)
> + Dbg->EmitGlobalVariable(E->getDecl(), Init);
>
> I'd prefer it personally. Your thoughts?
>
> Yes, the comparison operators look better. Using them now.
> See attachment and http://codereview.appspot.com/6112056/#ps11001
One seemingly annoying nit: can you swap the enums so you can use >= please? I think it makes more sense. Go ahead and commit with that change.
Thanks!
-eric
More information about the cfe-commits
mailing list