summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:30:32 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:30:32 +0000
commit08fc0d30267340ef46751615cf6978336a25d0f8 (patch)
treed8a5a49840c80b5f9fb260d9a09fd5b15bad3471 /tools/opt
parentc58d01b235fb6aba9edb49f6dbe08edaa756a873 (diff)
downloadllvm-08fc0d30267340ef46751615cf6978336a25d0f8.tar.gz
llvm-08fc0d30267340ef46751615cf6978336a25d0f8.tar.bz2
llvm-08fc0d30267340ef46751615cf6978336a25d0f8.tar.xz
Enable debug buffering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 50a2e390ce..a636bd9b04 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -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 @@ int main(int argc, char **argv) {
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();