[PATCH] D35949: Guard print() functions only used by dump() functions.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 10:03:13 PDT 2017


fhahn created this revision.
Herald added subscribers: nhaehnle, mzolotukhin, arsenm.

Since  r293359, most dump() function are only defined when
`!defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)` holds. print() functions
only used by dump() functions are now unused in release builds,
generating lots of warnings. This patch only defines some print()
functions if they are used.


https://reviews.llvm.org/D35949

Files:
  lib/CodeGen/CodeGenPrepare.cpp
  lib/CodeGen/LiveDebugVariables.cpp
  lib/CodeGen/MachinePipeliner.cpp
  lib/CodeGen/WinEHPrepare.cpp
  lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
  lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
  lib/Target/Hexagon/HexagonConstPropagation.cpp
  lib/Transforms/IPO/SampleProfile.cpp
  lib/Transforms/Scalar/GuardWidening.cpp
  lib/Transforms/Scalar/LoopStrengthReduce.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35949.108497.patch
Type: text/x-patch
Size: 7576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170727/02c56cd4/attachment.bin>


More information about the llvm-commits mailing list