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

Reid Spencer reid at x10sys.com
Thu Aug 3 12:10:18 PDT 2006



Changes in directory llvm/utils:

GenLibDeps.pl updated: 1.11 -> 1.12
---
Log message:

Print an error message if the lib directory (first argument) is not a 
directory.


---
Diffs of the changes:  (+3 -2)

 GenLibDeps.pl |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/utils/GenLibDeps.pl
diff -u llvm/utils/GenLibDeps.pl:1.11 llvm/utils/GenLibDeps.pl:1.12
--- llvm/utils/GenLibDeps.pl:1.11	Tue Aug  1 03:09:03 2006
+++ llvm/utils/GenLibDeps.pl	Thu Aug  3 14:10:03 2006
@@ -24,9 +24,10 @@
 
 # Give first option a name.
 my $Directory = $ARGV[0];
-if (!defined($Directory)) {
-  die "First argument must be the directory containing LLVM libs\n";
+if (!defined($Directory) || ! -d "$Directory") {
+  die "First argument must specify the directory containing LLVM libs\n";
 }
+
 my $nmPath = $ARGV[1];
 
 # Find the "dot" program






More information about the llvm-commits mailing list