[Openmp-commits] [openmp] r374038 - Don't assume Type from `readelf -d` has parentheses

Andrey Churbanov via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 8 05:39:04 PDT 2019


Author: achurbanov
Date: Tue Oct  8 05:39:04 2019
New Revision: 374038

URL: http://llvm.org/viewvc/llvm-project?rev=374038&view=rev
Log:
Don't assume Type from `readelf -d` has parentheses

Patch by jbeich (Jan Beich)

Differential Revision: https://reviews.llvm.org/D68053

Modified:
    openmp/trunk/runtime/tools/check-depends.pl

Modified: openmp/trunk/runtime/tools/check-depends.pl
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/check-depends.pl?rev=374038&r1=374037&r2=374038&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/check-depends.pl (original)
+++ openmp/trunk/runtime/tools/check-depends.pl Tue Oct  8 05:39:04 2019
@@ -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 );




More information about the Openmp-commits mailing list