[llvm-commits] [llvm] r92667 - /llvm/trunk/tools/opt/opt.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:30:33 PST 2010
Author: greened
Date: Mon Jan 4 19:30:32 2010
New Revision: 92667
URL: http://llvm.org/viewvc/llvm-project?rev=92667&view=rev
Log:
Enable debug buffering.
Modified:
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=92667&r1=92666&r2=92667&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Mon Jan 4 19:30:32 2010
@@ -26,6 +26,7 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/PassNameParser.h"
#include "llvm/System/Signals.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/IRReader.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h"
@@ -344,6 +345,9 @@
sys::PrintStackTraceOnErrorSignal();
llvm::PrettyStackTraceProgram X(argc, argv);
+ // Enable debug stream buffering.
+ EnableDebugBuffering = true;
+
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
LLVMContext &Context = getGlobalContext();
More information about the llvm-commits
mailing list