diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-09 02:10:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-09 02:10:28 +0000 |
commit | 0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b (patch) | |
tree | 6e78c885044b26acb23ca1c926936707ab432da3 /llvm/lib/Support/Debug.cpp | |
parent | 622be5793df74f36c713769f429fce4e2d817e3e (diff) | |
download | bcm5719-llvm-0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b.tar.gz bcm5719-llvm-0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b.zip |
Add classof implementations to the raw_ostream classes.
More uses to follow in a another patch.
llvm-svn: 234460
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index a88b18e6c06..896898c185c 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/lib/Support/Debug.cpp @@ -114,9 +114,8 @@ 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 = - static_cast<llvm::circular_raw_ostream *>(&llvm::dbgs()); - dbgout->flushBufferWithBanner(); + llvm::circular_raw_ostream &dbgout = cast<circular_raw_ostream>(llvm::dbgs()); + dbgout.flushBufferWithBanner(); } /// dbgs - Return a circular-buffered debug stream. |