[PATCH] D113556: [extract_symbols.py] Fix llvm-readobj options.

Simon Tatham via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 01:13:28 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7ac1fd0da993: [extract_symbols.py] Fix llvm-readobj options. (authored by simon_tatham).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113556/new/

https://reviews.llvm.org/D113556

Files:
  llvm/utils/extract_symbols.py


Index: llvm/utils/extract_symbols.py
===================================================================
--- llvm/utils/extract_symbols.py
+++ llvm/utils/extract_symbols.py
@@ -64,7 +64,7 @@
     process.wait()
 
 def readobj_get_symbols(lib):
-    process = subprocess.Popen(['llvm-readobj','-symbols',lib], bufsize=1,
+    process = subprocess.Popen(['llvm-readobj','--symbols',lib], bufsize=1,
                                stdout=subprocess.PIPE, stdin=subprocess.PIPE,
                                universal_newlines=True)
     process.stdin.close()
@@ -118,7 +118,7 @@
     return False
 
 def readobj_is_32bit_windows(lib):
-    output = subprocess.check_output(['llvm-readobj','-file-headers',lib],
+    output = subprocess.check_output(['llvm-readobj','--file-header',lib],
                                      universal_newlines=True)
     for line in output:
         match = re.match('Format: (\S+)', line)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113556.386443.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/be4f3b6d/attachment.bin>


More information about the llvm-commits mailing list