[PATCH] Add new debug kind LocTrackingOnly.
Diego Novillo
dnovillo at google.com
Tue Jun 24 06:39:58 PDT 2014
On Mon, Jun 23, 2014 at 6:10 PM, David Blaikie <dblaikie at gmail.com> wrote:
> ================
> Comment at: lib/Frontend/CompilerInvocation.cpp:569
> @@ +568,3 @@
> + Opts.OptimizationRemarkAnalysisPattern) {
> + if (Opts.getDebugInfo() == CodeGenOptions::NoDebugInfo)
> + Opts.setDebugInfo(CodeGenOptions::LocTrackingOnly);
> ----------------
> You could roll these two 'if's together, if you like. (if ((x || y || z)
> && A == B)
>
> Is there some more general check you could do for "OptimizationRemark"
> overall rather than having to check these 3 flags individually (& then have
> to update this ewhenever other similar flags are added?)
>
Done.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140624/09d5db29/attachment.html>
More information about the cfe-commits
mailing list