mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
81361d6a28
commit
ec9e7163b8
@ -62,7 +62,8 @@ foreach my $lib (@libs ) {
|
||||
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 @@ foreach my $obj (@objs ) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user