Wrap debug output with DEBUG().

llvm-svn: 227590
This commit is contained in:
Rui Ueyama 2015-01-30 18:20:44 +00:00
parent fcd044b692
commit b9a53f05f1
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ void RoundTripNativePass::perform(std::unique_ptr<MutableFile> &mergedFile) {
StringRef outFile = llvm::sys::path::filename(_context.outputPath());
if (llvm::sys::fs::createTemporaryFile(outFile, "native", tmpNativeFile))
return;
llvm::dbgs() << "RoundTripNativePass: " << tmpNativeFile << "\n";
DEBUG(llvm::dbgs() << "RoundTripNativePass: " << tmpNativeFile << "\n");
// The file that is written would be kept around if there is a problem
// writing to the file or when reading atoms back from the file.

View File

@ -28,7 +28,7 @@ void RoundTripYAMLPass::perform(std::unique_ptr<MutableFile> &mergedFile) {
StringRef outFile = llvm::sys::path::filename(_context.outputPath());
if (llvm::sys::fs::createTemporaryFile(outFile, "yaml", tmpYAMLFile))
return;
llvm::dbgs() << "RoundTripYAMLPass: " << tmpYAMLFile << "\n";
DEBUG(llvm::dbgs() << "RoundTripYAMLPass: " << tmpYAMLFile << "\n");
// The file that is written would be kept around if there is a problem
// writing to the file or when reading atoms back from the file.