summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/DarwinLdDriver.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-05-14 21:32:21 +0000
committerNick Kledzik <kledzik@apple.com>2014-05-14 21:32:21 +0000
commit0224e3475d8c3b676f1e720012166c76cd472f39 (patch)
tree81c836f249d0abbc491a82aa454ac0a536a09aa3 /lld/lib/Driver/DarwinLdDriver.cpp
parente858a65323e1b3476ecda8b9a1c2677d165c5363 (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud