Use portable flag with nm in extract_symbols.py
authorDavid Tenty <daltenty@ibm.com>
Wed, 23 Oct 2019 20:48:02 +0000 (16:48 -0400)
committerDavid Tenty <daltenty@ibm.com>
Wed, 23 Oct 2019 20:48:22 +0000 (16:48 -0400)
commitbf869683c3f26827853e3c34d3c4a337069928fe
treec61d1eedea223744c4eed30044a1edd8f2fe5f90
parent23fdd513a3ba7594ccdab1ea30608f4cab7faee4
Use portable flag with nm in extract_symbols.py

Summary:
nm is one of the tools that extract_symbols.py can use to extract
symbols from llvm libraries as part of the build process. This patch
updates the invocation of nm to use the -P POSIX option for "portable
output" so we get a consistently parsable output format on all
platforms.

A link to the relevant nm format: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/nm.html

Reviewers: hubert.reinterpretcast, stevewan, sfertile

Reviewed By: stevewan

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69004
llvm/utils/extract_symbols.py