From 118b0c789dac21cf4d16b45c0a02417a8ce70f36 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 20 Jul 2014 00:00:42 +0000 Subject: [PATCH] Fix -Asserts build introduced since r213456. llvm-svn: 213465 --- llvm/lib/Analysis/RegionInfo.cpp | 2 ++ llvm/lib/CodeGen/MachineRegionInfo.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/llvm/lib/Analysis/RegionInfo.cpp b/llvm/lib/Analysis/RegionInfo.cpp index 46aa1bcf0458..790cbdf15b8c 100644 --- a/llvm/lib/Analysis/RegionInfo.cpp +++ b/llvm/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/llvm/lib/CodeGen/MachineRegionInfo.cpp b/llvm/lib/CodeGen/MachineRegionInfo.cpp index c54a794d75cc..54b2eb44298e 100644 --- a/llvm/lib/CodeGen/MachineRegionInfo.cpp +++ b/llvm/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;