Remove useless DEBUG_WITH_TYPE.
authorRui Ueyama <ruiu@google.com>
Fri, 30 Jan 2015 02:15:57 +0000 (02:15 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 30 Jan 2015 02:15:57 +0000 (02:15 +0000)
We have a DEBUG_TYPE macro for the same debug string already
at the beginning of the file.

llvm-svn: 227551

lld/lib/Passes/RoundTripNativePass.cpp
lld/lib/Passes/RoundTripYAMLPass.cpp

index 2e7e1a3..15cf668 100644 (file)
@@ -28,9 +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;
-  DEBUG_WITH_TYPE("RoundTripNativePass", {
-    llvm::dbgs() << "RoundTripNativePass: " << tmpNativeFile << "\n";
-  });
+  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.
index fbd1c1b..cb61b51 100644 (file)
@@ -28,9 +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;
-  DEBUG_WITH_TYPE("RoundTripYAMLPass", {
-    llvm::dbgs() << "RoundTripYAMLPass: " << tmpYAMLFile << "\n";
-  });
+  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.