These functions are not actually defined for NDEBUG or !LLVM_DUMP_ENABLED, so guardin...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 24 Oct 2014 15:16:39 +0000 (15:16 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 24 Oct 2014 15:16:39 +0000 (15:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220565 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DominanceFrontier.h
include/llvm/Analysis/RegionInfo.h

index f42b9cbbfeddba09f2999e14b9d8bb6fd6f3f89c..996700efdb60003ddaa6c565877a5723b2baaa88 100644 (file)
@@ -102,7 +102,9 @@ public:
   void print(raw_ostream &OS) const;
 
   /// dump - Dump the dominance frontier to dbgs().
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
   void dump() const;
+#endif
 };
 
 //===-------------------------------------
index 49c88fd5caebfaa719e53c25dc1e12abfeeec60a..6ff7f97d01f5eff45b8380c724c89998105f702f 100644 (file)
@@ -424,8 +424,10 @@ public:
   void print(raw_ostream &OS, bool printTree = true, unsigned level = 0,
              PrintStyle Style = PrintNone) const;
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
   /// @brief Print the region to stderr.
   void dump() const;
+#endif
 
   /// @brief Check if the region contains a BasicBlock.
   ///
@@ -732,7 +734,9 @@ public:
   static typename RegionT::PrintStyle printStyle;
 
   void print(raw_ostream &OS) const;
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
   void dump() const;
+#endif
 
   void releaseMemory();