From: Reid Spencer Date: Thu, 30 Dec 2004 23:13:12 +0000 (+0000) Subject: * Don't include weak definitions as a definition X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b7e65b8a6abb6c3bc41336aec4ff11ee5dd560ac;p=oota-llvm.git * Don't include weak definitions as a definition * Make subordinate libraries presented with a vertical list instead of all listed on a single line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19196 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl index 3bdb92ababb..ee2c46c4c87 100755 --- a/utils/GenLibDeps.pl +++ b/utils/GenLibDeps.pl @@ -28,7 +28,7 @@ my %objdefs; # Gather definitions from the libraries foreach $lib (@libs ) { open DEFS, - "nm -g --defined-only $lib | grep ' [ABCDGRSTVW] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRSTVW] //' | sort | uniq |"; + "nm -g --defined-only $lib | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |"; while () { chomp($_); $libdefs{$_} = $lib; @@ -52,7 +52,7 @@ foreach $obj (@objs ) { # object. The
provides a list of the libraries/objects it depends on. sub gen_one_entry { my $lib = $_[0]; - print "
$lib
\n"; + print "
$lib
    \n"; open UNDEFS, "nm -u $lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |"; open DEPENDS, @@ -74,10 +74,10 @@ sub gen_one_entry { open DF, ") { chomp; - print " $_\n"; + print "
  • $_
  • \n"; } close DF; - print "
\n"; + print " \n"; } # Make sure we flush on write. This is slower but correct based on the way we