[llvm] r251255 - [ScalarEvolution] Get rid of NDEBUG in header (correctly this time).
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 12:55:24 PDT 2015
Author: davide
Date: Sun Oct 25 14:55:24 2015
New Revision: 251255
URL: http://llvm.org/viewvc/llvm-project?rev=251255&view=rev
Log:
[ScalarEvolution] Get rid of NDEBUG in header (correctly this time).
Modified:
llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=251255&r1=251254&r2=251255&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Sun Oct 25 14:55:24 2015
@@ -127,6 +127,10 @@ namespace llvm {
/// Print out the internal representation of this scalar to the specified
/// stream. This should really only be used for debugging purposes.
void print(raw_ostream &OS) const;
+
+ /// This method is used for debugging.
+ ///
+ void dump() const;
};
// Specialize FoldingSetTrait for SCEV to avoid needing to compute
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=251255&r1=251254&r2=251255&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Sun Oct 25 14:55:24 2015
@@ -123,6 +123,12 @@ VerifySCEV("verify-scev",
// Implementation of the SCEV class.
//
+LLVM_DUMP_METHOD
+void SCEV::dump() const {
+ print(dbgs());
+ dbgs() << '\n';
+}
+
void SCEV::print(raw_ostream &OS) const {
switch (static_cast<SCEVTypes>(getSCEVType())) {
case scConstant:
More information about the llvm-commits
mailing list