[llvm-commits] [PATCH] Guard new STATISTICs with #ifndef NDEBUG

Nick Lewycky nlewycky at google.com
Mon Oct 25 17:55:08 PDT 2010


Committed in revision 117345. Thanks for the patch!

Nick

On 25 October 2010 16:44, Matt Beaumont-Gay <matthewbg at google.com> wrote:

> With -Wall -Werror -DNDEBUG, gcc complains:
> lib/CodeGen/AsmPrinter/DwarfDebug.cpp:56: error: 'BlocksWithoutLineNo'
> defined but not used [-Wunused-variable]
> lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:59: error:
> 'NumBBWithOutOfOrderLineInfo' defined but not used [-Wunused-variable]
> lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:61: error:
> 'NumMBBWithOutOfOrderLineInfo' defined but not used
> [-Wunused-variable]
>
> -Matt
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101025/c172f218/attachment.html>


More information about the llvm-commits mailing list