llvm.org GIT mirror llvm / ec9e716
Added special support for stripping CRLF characters that may appear in the output of nm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45341 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 12 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6161 while () {
6262 next if (! / [ABCDGRST] /);
6363 s/^[^ ]* [ABCDGRST] //;
64 chomp($_);
64 s/\015?\012//; # not sure if is in binmode and uses LF or CRLF.
65 # this strips both LF and CRLF.
6566 $libdefs{$_} = $lib;
6667 }
6768 close DEFS;
7374 while () {
7475 next if (! / [ABCDGRST] /);
7576 s/^[^ ]* [ABCDGRST] //;
76 chomp($_);
77 s/\015?\012//; # not sure if is in binmode and uses LF or CRLF.
78 # this strips both LF and CRLF.
7779 $objdefs{$_} = $obj;
7880 }
7981 close DEFS;