aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-09 15:54:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-09 15:54:59 +0000
commitee0dd4d289cf2a6dcc2de13866ccee4016ee87c0 (patch)
tree76456bc97212cf44bd85e4b9028031a612cd68db /llvm/lib/Support/Debug.cpp
parent007435c1b7bdc296d935d5514f5d4cf7feb9604c (diff)
downloadllvm-ee0dd4d289cf2a6dcc2de13866ccee4016ee87c0.zip
llvm-ee0dd4d289cf2a6dcc2de13866ccee4016ee87c0.tar.gz
llvm-ee0dd4d289cf2a6dcc2de13866ccee4016ee87c0.tar.bz2
This reverts commit r234460 and r234461.
Revert "Add classof implementations to the raw_ostream classes." Revert "Use the cast machinery to remove dummy uses of formatted_raw_ostream." The underlying issue can be fixed without classof. llvm-svn: 234495
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r--llvm/lib/Support/Debug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index 896898c..a88b18e 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -114,8 +114,9 @@ static void debug_user_sig_handler(void *Cookie) {
// know that debug mode is enabled and dbgs() really is a
// circular_raw_ostream. If NDEBUG is defined, then dbgs() ==
// errs() but this will never be invoked.
- llvm::circular_raw_ostream &dbgout = cast<circular_raw_ostream>(llvm::dbgs());
- dbgout.flushBufferWithBanner();
+ llvm::circular_raw_ostream *dbgout =
+ static_cast<llvm::circular_raw_ostream *>(&llvm::dbgs());
+ dbgout->flushBufferWithBanner();
}
/// dbgs - Return a circular-buffered debug stream.