diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-12-16 19:12:49 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-12-16 19:12:49 +0000 |
commit | 3e8f56565d895999ae9f7b9ad5b0a45c55e60aba (patch) | |
tree | 81915f376a48e0271d95e3032dc73879628deda2 /lld/lib/ReaderWriter/MachO/LayoutPass.cpp | |
parent | c27f54822c7a5f62cd3a4b57a0fd1b43e12e3c6a (diff) | |
download | bcm5719-llvm-3e8f56565d895999ae9f7b9ad5b0a45c55e60aba.tar.gz bcm5719-llvm-3e8f56565d895999ae9f7b9ad5b0a45c55e60aba.zip |
Added some DEBUG() prints to make it clearer what the mach-o passes are doing. NFC.
We had some DEBUG prints these passes, but add more so that its clear where we are dumping
things, and what state we are in when we do so.
I'll be adding more and more DEBUG printing to try make it easier to observe whats going on
without having to attach a debugger.
llvm-svn: 255805
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index 18d8fd9954c..0c14ee9d39a 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -438,6 +438,7 @@ void LayoutPass::undecorate(SimpleFile::DefinedAtomRange &atomRange, /// Perform the actual pass std::error_code LayoutPass::perform(SimpleFile &mergedFile) { + DEBUG(llvm::dbgs() << "******** Laying out atoms:\n"); // sort the atoms ScopedTask task(getDefaultDomain(), "LayoutPass"); SimpleFile::DefinedAtomRange atomRange = mergedFile.definedAtoms(); @@ -469,6 +470,7 @@ std::error_code LayoutPass::perform(SimpleFile &mergedFile) { printDefinedAtoms(atomRange); }); + DEBUG(llvm::dbgs() << "******** Finished laying out atoms\n"); return std::error_code(); } |