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

Matt Beaumont-Gay matthewbg at google.com
Mon Oct 25 16:44:15 PDT 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: statistics-dbg-only.patch
Type: text/x-patch
Size: 1349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101025/5310ec69/attachment.bin>


More information about the llvm-commits mailing list