forked from OSchip/llvm-project
Don't assume Type from `readelf -d` has parentheses
Patch by jbeich (Jan Beich) Differential Revision: https://reviews.llvm.org/D68053 llvm-svn: 374038
This commit is contained in:
parent
f34271d886
commit
ca2973bb20
|
@ -131,7 +131,7 @@ sub get_deps_readelf($) {
|
|||
# Parse body.
|
||||
while ( $i < @bulk ) {
|
||||
my $line = $bulk[ $i ];
|
||||
if ( $line !~ m{^\s*0x[0-9a-f]+\s+\(([_A-Z0-9]+)\)\s+(.*)\s*$}i ) {
|
||||
if ( $line !~ m{^\s*0x[0-9a-f]+\s+\(?([_A-Z0-9]+)\)?\s+(.*)\s*$}i ) {
|
||||
parse_error( $tool, @bulk, $i );
|
||||
}; # if
|
||||
my ( $type, $value ) = ( $1, $2 );
|
||||
|
|
Loading…
Reference in New Issue