summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ToolRunner.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-01-03 07:44:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-01-03 07:44:30 +0000
commita50e3919b150df88f66d45f9173a5bec1bd22d94 (patch)
treefb81fc2d7feb9128cc2153c030573b512a7e4946 /llvm/tools/bugpoint/ToolRunner.cpp
parent2a34b91666be9e6cae82ae7cf3a3065847592f20 (diff)
downloadbcm5719-llvm-a50e3919b150df88f66d45f9173a5bec1bd22d94.tar.gz
bcm5719-llvm-a50e3919b150df88f66d45f9173a5bec1bd22d94.zip
A bit more debugging printf's.
llvm-svn: 32832
Diffstat (limited to 'llvm/tools/bugpoint/ToolRunner.cpp')
-rw-r--r--llvm/tools/bugpoint/ToolRunner.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp
index 360b9c53708..35f27db9cab 100644
--- a/llvm/tools/bugpoint/ToolRunner.cpp
+++ b/llvm/tools/bugpoint/ToolRunner.cpp
@@ -458,6 +458,11 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
GCCArgs.push_back(0); // NULL terminator
std::cout << "<gcc>" << std::flush;
+ DEBUG(std::cerr << "\nAbout to run:\t";
+ for (unsigned i=0, e = GCCArgs.size()-1; i != e; ++i)
+ std::cerr << " " << GCCArgs[i];
+ std::cerr << "\n";
+ );
if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(),
sys::Path())) {
ProcessFailure(GCCPath, &GCCArgs[0]);
@@ -545,6 +550,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
std::cout << "<gcc>" << std::flush;
+ DEBUG(std::cerr << "\nAbout to run:\t";
+ for (unsigned i=0, e = GCCArgs.size()-1; i != e; ++i)
+ std::cerr << " " << GCCArgs[i];
+ std::cerr << "\n";
+ );
if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(),
sys::Path())) {
ProcessFailure(GCCPath, &GCCArgs[0]);
OpenPOWER on IntegriCloud