[PATCH] Add new debug kind LocTrackingOnly.
David Blaikie
dblaikie at gmail.com
Mon Jun 23 15:10:12 PDT 2014
================
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?)
http://reviews.llvm.org/D4235
More information about the cfe-commits
mailing list