[llvm-commits] CVS: llvm/utils/GenLibDeps.pl
Reid Spencer
reid at x10sys.com
Thu Apr 20 22:29:37 PDT 2006
Changes in directory llvm/utils:
GenLibDeps.pl updated: 1.5 -> 1.6
---
Log message:
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).
---
Diffs of the changes: (+3 -3)
GenLibDeps.pl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/utils/GenLibDeps.pl
diff -u llvm/utils/GenLibDeps.pl:1.5 llvm/utils/GenLibDeps.pl:1.6
--- llvm/utils/GenLibDeps.pl:1.5 Thu Apr 20 18:09:57 2006
+++ llvm/utils/GenLibDeps.pl Fri Apr 21 00:29:25 2006
@@ -44,7 +44,7 @@
# 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 @@
# 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 @@
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>) {
More information about the llvm-commits
mailing list