summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/tools
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
commitca2973bb2024a72efd9bd583d6587bfff0a5545f (patch)
tree06975928d9ed9f452a8b41478341e0c9386ee4a3 /openmp/runtime/tools
parentf34271d886901b5a96db8d8ac3341a8c59f1c141 (diff)
downloadbcm5719-llvm-ca2973bb2024a72efd9bd583d6587bfff0a5545f.tar.gz
bcm5719-llvm-ca2973bb2024a72efd9bd583d6587bfff0a5545f.zip
Don't assume Type from `readelf -d` has parentheses
Patch by jbeich (Jan Beich) Differential Revision: https://reviews.llvm.org/D68053 llvm-svn: 374038
Diffstat (limited to 'openmp/runtime/tools')
-rwxr-xr-xopenmp/runtime/tools/check-depends.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/tools/check-depends.pl b/openmp/runtime/tools/check-depends.pl
index 168c0cd4224..6f8c8af5a22 100755
--- a/openmp/runtime/tools/check-depends.pl
+++ b/openmp/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 );
OpenPOWER on IntegriCloud