diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-31 05:27:38 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-31 05:27:38 +0000 |
| commit | d26c8e346344eec7d178b0cf5fe2fa30813c076e (patch) | |
| tree | a5ffbb94f8c35f0bb9eeb760d1b75a515307bdab /lld/lib/Driver/GnuLdDriver.cpp | |
| parent | 2c4f8b7ee87fb6f77688bee1dd00e10ae2707f00 (diff) | |
| download | bcm5719-llvm-d26c8e346344eec7d178b0cf5fe2fa30813c076e.tar.gz bcm5719-llvm-d26c8e346344eec7d178b0cf5fe2fa30813c076e.zip | |
[lld][LinkingContext] Atoms created from command line options should be available in YAML
This adds an API to the LinkingContext for flavors to add Internal files
containing atoms that need to appear in the YAML output as well, when -emit-yaml
switch is used.
Flavors can add more internal files for other options that are needed.
llvm-svn: 189718
Diffstat (limited to 'lld/lib/Driver/GnuLdDriver.cpp')
| -rw-r--r-- | lld/lib/Driver/GnuLdDriver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/Driver/GnuLdDriver.cpp b/lld/lib/Driver/GnuLdDriver.cpp index 7060da11747..2019fa757b5 100644 --- a/lld/lib/Driver/GnuLdDriver.cpp +++ b/lld/lib/Driver/GnuLdDriver.cpp @@ -289,6 +289,8 @@ bool GnuLdDriver::parse(int argc, const char *argv[], return true; } + inputGraph->addInternalFile(ctx->createInternalFiles()); + if (ctx->outputYAML()) inputGraph->dump(diagnostics); |

