diff options
Diffstat (limited to 'lib/CodeGen/BranchRelaxation.cpp')
| -rw-r--r-- | lib/CodeGen/BranchRelaxation.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchRelaxation.cpp b/lib/CodeGen/BranchRelaxation.cpp index 8b27570a17f4..7af136941661 100644 --- a/lib/CodeGen/BranchRelaxation.cpp +++ b/lib/CodeGen/BranchRelaxation.cpp @@ -126,14 +126,16 @@ void BranchRelaxation::verify() {  #endif  } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)  /// print block size and offset information - debugging -void BranchRelaxation::dumpBBs() { +LLVM_DUMP_METHOD void BranchRelaxation::dumpBBs() {    for (auto &MBB : *MF) {      const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];      dbgs() << format("BB#%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)             << format("size=%#x\n", BBI.Size);    }  } +#endif  /// scanFunction - Do the initial scan of the function, building up  /// information about each block.  | 
