aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2019-10-08 12:39:04 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2019-10-08 12:39:04 +0000
commitace8505db1e11227e9007a2ac55ffaeccf88a65c (patch)
treee3739778d3d034b2e280687b975f5520321245a5
parent9dfddd6912d2af7f5a4e27a9b7782214bf2045e9 (diff)
downloadopenmp-ace8505db1e11227e9007a2ac55ffaeccf88a65c.tar.gz
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
-rwxr-xr-xruntime/tools/check-depends.pl2
1 files changed, 1 insertions, 1 deletions
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 @@ 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 );