diff --git a/llvm/utils/GenLibDeps.pl b/llvm/utils/GenLibDeps.pl index 3bdb92ababba..ee2c46c4c870 100755 --- a/llvm/utils/GenLibDeps.pl +++ b/llvm/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"; + print " \n"; } # Make sure we flush on write. This is slower but correct based on the way we