git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251255
91177308-0d34-0410-b5e6-
96231b3b80d8
/// 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
// 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: