================
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



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to