From c58d01b235fb6aba9edb49f6dbe08edaa756a873 Mon Sep 17 00:00:00 2001 From: David Greene Date: Tue, 5 Jan 2010 01:30:21 +0000 Subject: [PATCH] Enable debug buffering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92666 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 84e6867bade..930de26d491 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -28,6 +28,7 @@ #include "llvm/Config/config.h" #include "llvm/LinkAllVMCore.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/FormattedStream.h" #include "llvm/Support/ManagedStatic.h" @@ -210,6 +211,10 @@ static formatted_raw_ostream *GetOutputStream(const char *TargetName, int main(int argc, char **argv) { sys::PrintStackTraceOnErrorSignal(); PrettyStackTraceProgram X(argc, argv); + + // Enable debug stream buffering. + EnableDebugBuffering = true; + LLVMContext &Context = getGlobalContext(); llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.