summaryrefslogtreecommitdiff
path: root/utils/GenLibDeps.pl
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-04-21 05:29:25 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-04-21 05:29:25 +0000
commit444b2cf4c3718da8d2b38344ca3d8e50aa9d9538 (patch)
tree749051d545d24c8f9f542105d1294d7167f259b7 /utils/GenLibDeps.pl
parent22591417f564a065d991bd4cdca4cf22c7b7977a (diff)
downloadllvm-444b2cf4c3718da8d2b38344ca3d8e50aa9d9538.tar.gz
llvm-444b2cf4c3718da8d2b38344ca3d8e50aa9d9538.tar.bz2
llvm-444b2cf4c3718da8d2b38344ca3d8e50aa9d9538.tar.xz
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/GenLibDeps.pl')
-rwxr-xr-xutils/GenLibDeps.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl
index a0f6a62f01..60c291d945 100755
--- a/utils/GenLibDeps.pl
+++ b/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>) {