summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Driver.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2015-12-10 09:12:18 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2015-12-10 09:12:18 +0000
commita5fbebc2065d12a403f82380cbe0c3a571cfccbe (patch)
treec63f3cf75900c832b63c8e8ce07fd112b09bf121 /lld/ELF/Driver.cpp
parente451eeff5c7e070764584aba20ffdd8919b4b4cd (diff)
downloadbcm5719-llvm-a5fbebc2065d12a403f82380cbe0c3a571cfccbe.tar.gz
bcm5719-llvm-a5fbebc2065d12a403f82380cbe0c3a571cfccbe.zip
[ELF] - Implemented --print-gc-sections command line argument.
List all sections removed by garbage collection. This option is only effective if garbage collection has been enabled via the `--gc-sections' option. Differential revision: http://reviews.llvm.org/D15327 llvm-svn: 255235
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r--lld/ELF/Driver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index b515ddc7bc3..2f1cf9be4df 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -163,6 +163,7 @@ void LinkerDriver::createFiles(opt::InputArgList &Args) {
Config->GcSections = Args.hasArg(OPT_gc_sections);
Config->NoInhibitExec = Args.hasArg(OPT_noinhibit_exec);
Config->NoUndefined = Args.hasArg(OPT_no_undefined);
+ Config->PrintGcSections = Args.hasArg(OPT_print_gc_sections);
Config->Shared = Args.hasArg(OPT_shared);
Config->StripAll = Args.hasArg(OPT_strip_all);
Config->Verbose = Args.hasArg(OPT_verbose);
OpenPOWER on IntegriCloud