diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-03 07:44:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-03 07:44:30 +0000 |
commit | 7f7fdcca8fabccb21967f0b12d68009ff6247acd (patch) | |
tree | 2672b99d26cc088cd2dacc8de02898ef5852f99d /tools/bugpoint/ToolRunner.cpp | |
parent | 376dd212f9142cd0f0b03e0b6296b2df7208bb9a (diff) | |
download | external_llvm-7f7fdcca8fabccb21967f0b12d68009ff6247acd.zip external_llvm-7f7fdcca8fabccb21967f0b12d68009ff6247acd.tar.gz external_llvm-7f7fdcca8fabccb21967f0b12d68009ff6247acd.tar.bz2 |
A bit more debugging printf's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ToolRunner.cpp')
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 360b9c5..35f27db 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/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]); |