From 0b1fe84e810f3b424009aef90f8c667c5c1c5784 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Oct 2003 02:27:40 +0000 Subject: [PATCH] Add debugtype, make output marginally more nice git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9251 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/ToolRunner.cpp | 7 ++++--- tools/bugpoint/ToolRunner.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index 4d0964e38ea..4ae896bd99e 100644 --- a/lib/Support/ToolRunner.cpp +++ b/lib/Support/ToolRunner.cpp @@ -4,6 +4,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "toolrunner" #include "llvm/Support/ToolRunner.h" #include "Support/Debug.h" #include "Support/FileUtilities.h" @@ -49,7 +50,7 @@ int LLI::ExecuteProgram(const std::string &Bytecode, LLIArgs.push_back(0); std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = LLIArgs.size()-1; i != e; ++i) std::cerr << " " << LLIArgs[i]; std::cerr << "\n"; @@ -173,7 +174,7 @@ int JIT::ExecuteProgram(const std::string &Bytecode, JITArgs.push_back(0); std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = JITArgs.size()-1; i != e; ++i) std::cerr << " " << JITArgs[i]; std::cerr << "\n"; @@ -308,7 +309,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, // Now that we have a binary, run it! std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = ProgramArgs.size()-1; i != e; ++i) std::cerr << " " << ProgramArgs[i]; std::cerr << "\n"; diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 4d0964e38ea..4ae896bd99e 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -4,6 +4,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "toolrunner" #include "llvm/Support/ToolRunner.h" #include "Support/Debug.h" #include "Support/FileUtilities.h" @@ -49,7 +50,7 @@ int LLI::ExecuteProgram(const std::string &Bytecode, LLIArgs.push_back(0); std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = LLIArgs.size()-1; i != e; ++i) std::cerr << " " << LLIArgs[i]; std::cerr << "\n"; @@ -173,7 +174,7 @@ int JIT::ExecuteProgram(const std::string &Bytecode, JITArgs.push_back(0); std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = JITArgs.size()-1; i != e; ++i) std::cerr << " " << JITArgs[i]; std::cerr << "\n"; @@ -308,7 +309,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, // Now that we have a binary, run it! std::cout << "" << std::flush; - DEBUG(std::cerr << "\nAbout to run:\n\t"; + DEBUG(std::cerr << "\nAbout to run:\t"; for (unsigned i=0, e = ProgramArgs.size()-1; i != e; ++i) std::cerr << " " << ProgramArgs[i]; std::cerr << "\n"; -- 2.34.1