diff --git a/lld/lib/Passes/RoundTripNativePass.cpp b/lld/lib/Passes/RoundTripNativePass.cpp index 7e14e3144cee..ad05ed654730 100644 --- a/lld/lib/Passes/RoundTripNativePass.cpp +++ b/lld/lib/Passes/RoundTripNativePass.cpp @@ -14,6 +14,7 @@ #include "lld/ReaderWriter/Simple.h" #include "lld/ReaderWriter/Writer.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/Path.h" using namespace lld; @@ -27,6 +28,9 @@ void RoundTripNativePass::perform(std::unique_ptr &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"; + }); // 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 de9cdc230f32..13698c345848 100644 --- a/lld/lib/Passes/RoundTripYAMLPass.cpp +++ b/lld/lib/Passes/RoundTripYAMLPass.cpp @@ -13,6 +13,7 @@ #include "lld/ReaderWriter/Simple.h" #include "lld/ReaderWriter/Writer.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/Path.h" // Skip YAML files larger than this to avoid OOM error. The YAML reader consumes @@ -31,6 +32,9 @@ void RoundTripYAMLPass::perform(std::unique_ptr &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"; + }); // 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.