[lld] r227590 - Wrap debug output with DEBUG().
Rui Ueyama
ruiu at google.com
Fri Jan 30 10:20:44 PST 2015
Author: ruiu
Date: Fri Jan 30 12:20:44 2015
New Revision: 227590
URL: http://llvm.org/viewvc/llvm-project?rev=227590&view=rev
Log:
Wrap debug output with DEBUG().
Modified:
lld/trunk/lib/Passes/RoundTripNativePass.cpp
lld/trunk/lib/Passes/RoundTripYAMLPass.cpp
Modified: lld/trunk/lib/Passes/RoundTripNativePass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/RoundTripNativePass.cpp?rev=227590&r1=227589&r2=227590&view=diff
==============================================================================
--- lld/trunk/lib/Passes/RoundTripNativePass.cpp (original)
+++ lld/trunk/lib/Passes/RoundTripNativePass.cpp Fri Jan 30 12:20:44 2015
@@ -28,7 +28,7 @@ void RoundTripNativePass::perform(std::u
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.
Modified: lld/trunk/lib/Passes/RoundTripYAMLPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/RoundTripYAMLPass.cpp?rev=227590&r1=227589&r2=227590&view=diff
==============================================================================
--- lld/trunk/lib/Passes/RoundTripYAMLPass.cpp (original)
+++ lld/trunk/lib/Passes/RoundTripYAMLPass.cpp Fri Jan 30 12:20:44 2015
@@ -28,7 +28,7 @@ void RoundTripYAMLPass::perform(std::uni
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.
More information about the llvm-commits
mailing list