diff --git a/lib/Analysis/RegionInfo.cpp b/lib/Analysis/RegionInfo.cpp index 46aa1bcf045..790cbdf15b8 100644 --- a/lib/Analysis/RegionInfo.cpp +++ b/lib/Analysis/RegionInfo.cpp @@ -147,9 +147,11 @@ void RegionInfoPass::print(raw_ostream &OS, const Module *) const { RI.print(OS); } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void RegionInfoPass::dump() const { RI.dump(); } +#endif char RegionInfoPass::ID = 0; diff --git a/lib/CodeGen/MachineRegionInfo.cpp b/lib/CodeGen/MachineRegionInfo.cpp index c54a794d75c..54b2eb44298 100644 --- a/lib/CodeGen/MachineRegionInfo.cpp +++ b/lib/CodeGen/MachineRegionInfo.cpp @@ -111,9 +111,11 @@ void MachineRegionInfoPass::print(raw_ostream &OS, const Module *) const { RI.print(OS); } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MachineRegionInfoPass::dump() const { RI.dump(); } +#endif char MachineRegionInfoPass::ID = 0;