[llvm-commits] CVS: llvm/utils/GenLibDeps.pl

Reid Spencer reid at x10sys.com
Thu Dec 30 15:13:22 PST 2004



Changes in directory llvm/utils:

GenLibDeps.pl updated: 1.1 -> 1.2
---
Log message:

* Don't include weak definitions as a definition
* Make subordinate libraries presented with a vertical list instead of all
  listed on a single line.


---
Diffs of the changes:  (+4 -4)

Index: llvm/utils/GenLibDeps.pl
diff -u llvm/utils/GenLibDeps.pl:1.1 llvm/utils/GenLibDeps.pl:1.2
--- llvm/utils/GenLibDeps.pl:1.1	Thu Dec 30 17:07:56 2004
+++ llvm/utils/GenLibDeps.pl	Thu Dec 30 17:13:12 2004
@@ -28,7 +28,7 @@
 # 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 (<DEFS>) {
     chomp($_);
     $libdefs{$_} = $lib;
@@ -52,7 +52,7 @@
 # object. The <dd> provides a list of the libraries/objects it depends on.
 sub gen_one_entry {
   my $lib = $_[0];
-  print "  <dt><b>$lib</b</dt><dd>\n";
+  print "  <dt><b>$lib</b</dt><dd><ul>\n";
   open UNDEFS, 
     "nm -u $lib | grep ' U ' | sed -e 's/         U //' | sort | uniq |";
   open DEPENDS,
@@ -74,10 +74,10 @@
   open DF, "<GenLibDeps.out";
   while (<DF>) {
     chomp;
-    print "    $_\n";
+    print "    <li>$_</li>\n";
   }
   close DF;
-  print "  </dd>\n";
+  print "  </ul></dd>\n";
 }
 
 # Make sure we flush on write. This is slower but correct based on the way we






More information about the llvm-commits mailing list