commit | ace8505db1e11227e9007a2ac55ffaeccf88a65c | [log] [tgz] |
---|---|---|
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | Tue Oct 08 12:39:04 2019 +0000 |
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | Tue Oct 08 12:39:04 2019 +0000 |
tree | e3739778d3d034b2e280687b975f5520321245a5 | |
parent | 9dfddd6912d2af7f5a4e27a9b7782214bf2045e9 [diff] |
Don't assume Type from `readelf -d` has parentheses Patch by jbeich (Jan Beich) Differential Revision: https://reviews.llvm.org/D68053 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@374038 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/tools/check-depends.pl b/runtime/tools/check-depends.pl index 168c0cd..6f8c8af 100755 --- a/runtime/tools/check-depends.pl +++ b/runtime/tools/check-depends.pl
@@ -131,7 +131,7 @@ # 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 );