diff options
| author | Nick Kledzik <kledzik@apple.com> | 2014-05-14 21:32:21 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2014-05-14 21:32:21 +0000 |
| commit | 0224e3475d8c3b676f1e720012166c76cd472f39 (patch) | |
| tree | 81c836f249d0abbc491a82aa454ac0a536a09aa3 /lld/lib/Driver/DarwinLdDriver.cpp | |
| parent | e858a65323e1b3476ecda8b9a1c2677d165c5363 (diff) | |
| download | bcm5719-llvm-0224e3475d8c3b676f1e720012166c76cd472f39.tar.gz bcm5719-llvm-0224e3475d8c3b676f1e720012166c76cd472f39.zip | |
Add -print_atoms options to DarwinLdDriver which dumps final state of all atoms in yaml
llvm-svn: 208813
Diffstat (limited to 'lld/lib/Driver/DarwinLdDriver.cpp')
| -rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 4dde6bae231..069ff3588fa 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -258,6 +258,10 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], ctx.appendLLVMOption((*it)->getValue()); } + // Handle -print_atoms a + if (parsedArgs->getLastArg(OPT_print_atoms)) + ctx.setPrintAtoms(); + std::unique_ptr<InputGraph> inputGraph(new InputGraph()); // Handle input files |

