Use use_empty() instead of getNumUses(), avoiding a use list traversal.
[oota-llvm.git] / tools / llvm-config / find-cycles.pl
index 5f62034bb2a1f343cb39328519a0c1898ef0c92f..8156abd3f053bb069601306f1cb2c3e5395ed578 100755 (executable)
@@ -29,7 +29,7 @@ sub find_all_cycles;
 # Read our dependency information.
 while (<>) {
     chomp;
-    my ($module, $dependency_str) = /^([^:]*): ?(.*)$/;
+    my ($module, $dependency_str) = /^\s*([^:]+):\s*(.*)\s*$/;
     die "Malformed data: $_" unless defined $dependency_str;
     my @dependencies = split(/ /, $dependency_str);
     $DEPS{$module} = \@dependencies;
@@ -61,7 +61,6 @@ foreach my $cycle (@CYCLES) {
         $cycles_found = $cycles_found + 1;
         print STDERR "find-cycles.pl: Circular dependency between *.a files:\n";
         print STDERR "find-cycles.pl:   ", join(' ', @archives), "\n";
-        print STDERR "find-cycles.pl: Some linkers may have problems.\n";
         push @modules, @archives; # WORKAROUND: Duplicate *.a files. Ick.
     }