[PATCH] Add support for optimization reports.

Diego Novillo dnovillo at google.com
Tue Apr 1 12:34:50 PDT 2014


On Mon, Mar 31, 2014 at 6:06 PM, Richard Smith <richard at metafoo.co.uk>wrote:

>
>
> ================
> Comment at: include/clang/Basic/DiagnosticGroups.td:665
> @@ -664,1 +664,2 @@
>  def RemarkBackendPlugin : DiagGroup<"remark-backend-plugin">;
> +def BackendOptimizationReport : DiagGroup<"Rpass">;
> ----------------
> Do you intend for this to be controlled by `-WRpass`? I don't think you
> should add a `DiagGroup` for this one at all.
>

The problem here is that if I do not create a DiagGroup for the remark, I
get the build error:

tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td:35:1: error:
Error remark_fe_backend_optimization_report not in any diagnostic group
def remark_fe_backend_optimization_report: Remark<"%0">, CatBackend;
^

It seems to be forcing me to use a diagnostic group. Not every option is in
a group, so I'm missing something here.


Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140401/22f509be/attachment.html>


More information about the cfe-commits mailing list