write the symbol table for function bodies
[oota-llvm.git] / utils / GenLibDeps.pl
index 9bb47520235f2c8be907a152e0518fada5f52421..419d8f92d866d62cf43d074f8d702a8cbfa924f7 100755 (executable)
@@ -24,9 +24,10 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
 
 # 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