Updated GenLibDeps.pl to employ "use strict" to help prevent uses of variables
authorTed Kremenek <kremenek@apple.com>
Tue, 27 Nov 2007 19:31:11 +0000 (19:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 27 Nov 2007 19:31:11 +0000 (19:31 +0000)
commit8330b0e5d409e2bce093c680348459f24d8b0932
tree0abed91a24aeae1006d48698315ed4298c6a2a53
parentd73ab8884f5c95d2704be3c00af4cc3dba963da6
Updated GenLibDeps.pl to employ "use strict" to help prevent uses of variables
that have not yet been defined.

Removed used of grep and sed when parsing the results of "nm". This was
originally motivated because if the user has specified options to grep using
the environment variable GREP_OPTIONS this could break the script. Piping
through grep/sed/sort/uniq is also (to my understanding) not necessary, and
the equivalent operations can be done much faster in the Perl script.

Using a crude benchmark, these changes resulted in a 3x speedup in the
execution of GenLibDeps.pl.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44372 91177308-0d34-0410-b5e6-96231b3b80d8
utils/GenLibDeps.pl