These functions are not actually defined for NDEBUG or !LLVM_DUMP_ENABLED, so guarding the declarations as well. NFC, silences MSVC warnings in release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2014-10-24 15:16:39 +00:00
parent 29e46cd4b7
commit a653bf1b12
2 changed files with 6 additions and 0 deletions

View File

@ -102,7 +102,9 @@ public:
void print(raw_ostream &OS) const; void print(raw_ostream &OS) const;
/// dump - Dump the dominance frontier to dbgs(). /// dump - Dump the dominance frontier to dbgs().
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() const; void dump() const;
#endif
}; };
//===------------------------------------- //===-------------------------------------

View File

@ -424,8 +424,10 @@ public:
void print(raw_ostream &OS, bool printTree = true, unsigned level = 0, void print(raw_ostream &OS, bool printTree = true, unsigned level = 0,
PrintStyle Style = PrintNone) const; PrintStyle Style = PrintNone) const;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
/// @brief Print the region to stderr. /// @brief Print the region to stderr.
void dump() const; void dump() const;
#endif
/// @brief Check if the region contains a BasicBlock. /// @brief Check if the region contains a BasicBlock.
/// ///
@ -732,7 +734,9 @@ public:
static typename RegionT::PrintStyle printStyle; static typename RegionT::PrintStyle printStyle;
void print(raw_ostream &OS) const; void print(raw_ostream &OS) const;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() const; void dump() const;
#endif
void releaseMemory(); void releaseMemory();