From 53c1612ed1b5a21d5ecfd7d2d35edf1961c3b3b2 Mon Sep 17 00:00:00 2001 From: Jingyue Wu Date: Mon, 27 Oct 2014 21:14:41 +0000 Subject: [PATCH] [ScalarEvolution] Guard dump() with #if to be consistent with its definition in ScalarEvolution.cpp llvm-svn: 220721 --- llvm/include/llvm/Analysis/ScalarEvolution.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index bc31b8e..893402e 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -129,9 +129,11 @@ namespace llvm { /// purposes. void print(raw_ostream &OS) const; +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) /// dump - This method is used for debugging. /// void dump() const; +#endif }; // Specialize FoldingSetTrait for SCEV to avoid needing to compute -- 2.7.4