Author: kremenek Date: Mon Dec 24 02:04:39 2007 New Revision: 45341 URL: http://llvm.org/viewvc/llvm-project?rev=45341&view=rev Log: Added special support for stripping CRLF characters that may appear in the output of nm.
Modified: llvm/trunk/utils/GenLibDeps.pl Modified: llvm/trunk/utils/GenLibDeps.pl URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/GenLibDeps.pl?rev=45341&r1=45340&r2=45341&view=diff ============================================================================== --- llvm/trunk/utils/GenLibDeps.pl (original) +++ llvm/trunk/utils/GenLibDeps.pl Mon Dec 24 02:04:39 2007 @@ -62,7 +62,8 @@ while (<DEFS>) { next if (! / [ABCDGRST] /); s/^[^ ]* [ABCDGRST] //; - chomp($_); + s/\015?\012//; # not sure if <DEFS> is in binmode and uses LF or CRLF. + # this strips both LF and CRLF. $libdefs{$_} = $lib; } close DEFS; @@ -74,7 +75,8 @@ while (<DEFS>) { next if (! / [ABCDGRST] /); s/^[^ ]* [ABCDGRST] //; - chomp($_); + s/\015?\012//; # not sure if <DEFS> is in binmode and uses LF or CRLF. + # this strips both LF and CRLF. $objdefs{$_} = $obj; } close DEFS; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits