diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2017-07-31 10:07:49 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2017-07-31 10:07:49 +0000 |
| commit | 6b3216aad8e2125fe57a66bae9c163c41759664b (patch) | |
| tree | e85f76b8e15bcaf8ff77b177c1afbf20b75cb552 /llvm/lib/Target/Hexagon | |
| parent | b4b4c0ae17a3ded41914cddb9285d11339dca2bc (diff) | |
| download | bcm5719-llvm-6b3216aad8e2125fe57a66bae9c163c41759664b.tar.gz bcm5719-llvm-6b3216aad8e2125fe57a66bae9c163c41759664b.zip | |
Guard print() functions only used by dump() functions.
Summary:
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.
Reviewers: MatzeB
Reviewed By: MatzeB
Subscribers: arsenm, mzolotukhin, nhaehnle, llvm-commits
Differential Revision: https://reviews.llvm.org/D35949
llvm-svn: 309553
Diffstat (limited to 'llvm/lib/Target/Hexagon')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp index e59bde6770f..2c03538d7e6 100644 --- a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp +++ b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp @@ -602,11 +602,13 @@ uint32_t LatticeCell::properties() const { return Ps; } +#ifndef NDEBUG void MachineConstPropagator::CellMap::print(raw_ostream &os, const TargetRegisterInfo &TRI) const { for (auto &I : Map) dbgs() << " " << PrintReg(I.first, &TRI) << " -> " << I.second << '\n'; } +#endif void MachineConstPropagator::visitPHI(const MachineInstr &PN) { const MachineBasicBlock *MB = PN.getParent(); |

