Skip to content

Commit

Permalink
These functions are not actually defined for NDEBUG or !LLVM_DUMP_ENA…
Browse files Browse the repository at this point in the history
…BLED, 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
  • Loading branch information
AaronBallman committed Oct 24, 2014
1 parent 29e46cd commit a653bf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/llvm/Analysis/DominanceFrontier.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ class DominanceFrontierBase {
void print(raw_ostream &OS) const;

/// dump - Dump the dominance frontier to dbgs().
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() const;
#endif
};

//===-------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions include/llvm/Analysis/RegionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,10 @@ class RegionBase : public RegionNodeBase<Tr> {
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.
///
Expand Down Expand Up @@ -732,7 +734,9 @@ class RegionInfoBase {
static typename RegionT::PrintStyle printStyle;

void print(raw_ostream &OS) const;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() const;
#endif

void releaseMemory();

Expand Down

0 comments on commit a653bf1

Please sign in to comment.