mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Added special support for stripping CRLF characters that may appear in the
output of nm. llvm-svn: 45341
This commit is contained in:
parent
3e409a37ac
commit
3ba98109c9
@ -62,7 +62,8 @@ foreach my $lib (@libs ) {
|
|||||||
while (<DEFS>) {
|
while (<DEFS>) {
|
||||||
next if (! / [ABCDGRST] /);
|
next if (! / [ABCDGRST] /);
|
||||||
s/^[^ ]* [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;
|
$libdefs{$_} = $lib;
|
||||||
}
|
}
|
||||||
close DEFS;
|
close DEFS;
|
||||||
@ -74,7 +75,8 @@ foreach my $obj (@objs ) {
|
|||||||
while (<DEFS>) {
|
while (<DEFS>) {
|
||||||
next if (! / [ABCDGRST] /);
|
next if (! / [ABCDGRST] /);
|
||||||
s/^[^ ]* [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;
|
$objdefs{$_} = $obj;
|
||||||
}
|
}
|
||||||
close DEFS;
|
close DEFS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user