diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-04-21 05:29:25 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-04-21 05:29:25 +0000 |
| commit | d835ea4c1c40b4acbd135add9d07295efe7c1b17 (patch) | |
| tree | 45892c037bf19e9d4bf5a488895765b9b6f04987 /llvm/utils/GenLibDeps.pl | |
| parent | 9c2707ad5a0146430dce736fc238e22ccc020611 (diff) | |
| download | bcm5719-llvm-d835ea4c1c40b4acbd135add9d07295efe7c1b17.tar.gz bcm5719-llvm-d835ea4c1c40b4acbd135add9d07295efe7c1b17.zip | |
Remove the extraneous --defined-only option to nm. This is the default and
some versions of nm don't recognize it (its a gnu option).
llvm-svn: 27928
Diffstat (limited to 'llvm/utils/GenLibDeps.pl')
| -rwxr-xr-x | llvm/utils/GenLibDeps.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/GenLibDeps.pl b/llvm/utils/GenLibDeps.pl index a0f6a62f01c..60c291d9456 100755 --- a/llvm/utils/GenLibDeps.pl +++ b/llvm/utils/GenLibDeps.pl @@ -44,7 +44,7 @@ my %objdefs; # Gather definitions from the libraries foreach $lib (@libs ) { open DEFS, - "nm -g --defined-only $Directory/$lib | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |"; + "nm -g $Directory/$lib | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |"; while (<DEFS>) { chomp($_); $libdefs{$_} = $lib; @@ -55,7 +55,7 @@ foreach $lib (@libs ) { # Gather definitions from the object files. foreach $obj (@objs ) { open DEFS, - "nm -g --defined-only $Directory/$obj | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |"; + "nm -g $Directory/$obj | grep ' [ABCDGRST] ' | sed -e 's/^[0-9A-Fa-f]* [ABCDGRST] //' | sort | uniq |"; while (<DEFS>) { chomp($_); $objdefs{$_} = $obj; @@ -76,7 +76,7 @@ sub gen_one_entry { print " <dt><b>$lib</b</dt><dd><ul>\n"; } open UNDEFS, - "nm -u $Directory/$lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |"; + "nm -g -u $Directory/$lib | grep ' U ' | sed -e 's/ U //' | sort | uniq |"; open DEPENDS, "| sort | uniq > GenLibDeps.out"; while (<UNDEFS>) { |

