1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[ScalarEvolution] Get rid of NDEBUG in header (correctly this time).

llvm-svn: 251255
This commit is contained in:
Davide Italiano 2015-10-25 19:55:24 +00:00
parent ef521e177e
commit 0d0d89527e
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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: