From b9a53f05f1a0251c594f2d32c1504a298b694a64 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 30 Jan 2015 18:20:44 +0000 Subject: [PATCH] Wrap debug output with DEBUG(). llvm-svn: 227590 --- lld/lib/Passes/RoundTripNativePass.cpp | 2 +- lld/lib/Passes/RoundTripYAMLPass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/lib/Passes/RoundTripNativePass.cpp b/lld/lib/Passes/RoundTripNativePass.cpp index 15cf668..ed0d9ea 100644 --- a/lld/lib/Passes/RoundTripNativePass.cpp +++ b/lld/lib/Passes/RoundTripNativePass.cpp @@ -28,7 +28,7 @@ void RoundTripNativePass::perform(std::unique_ptr &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. diff --git a/lld/lib/Passes/RoundTripYAMLPass.cpp b/lld/lib/Passes/RoundTripYAMLPass.cpp index cb61b51..bca0bad 100644 --- a/lld/lib/Passes/RoundTripYAMLPass.cpp +++ b/lld/lib/Passes/RoundTripYAMLPass.cpp @@ -28,7 +28,7 @@ void RoundTripYAMLPass::perform(std::unique_ptr &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. -- 2.7.4