diff options
author | Jacek Caban <jacek@codeweavers.com> | 2024-02-06 13:47:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 13:47:58 +0100 |
commit | a2e5287d5a499521aaf093f812cbedcbbc2a4bc8 (patch) | |
tree | c0b05201b3fba9c108e0865c55525c27f380b410 /llvm/tools | |
parent | 2e3de997ab7cd8728c484bc39e24fecbb97dfae8 (diff) | |
download | llvm-a2e5287d5a499521aaf093f812cbedcbbc2a4bc8.zip llvm-a2e5287d5a499521aaf093f812cbedcbbc2a4bc8.tar.gz llvm-a2e5287d5a499521aaf093f812cbedcbbc2a4bc8.tar.bz2 |
[llvm-readobj][Object][COFF] Print COFF import library symbol export name. (#78769)
getExportName implementation is based on lld-link. In its current form,
it's mostly about convenience, but it will be more useful for EXPORTAS
support, for which export name is not possible to deduce from other
printed properties.
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-readobj/COFFImportDumper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-readobj/COFFImportDumper.cpp b/llvm/tools/llvm-readobj/COFFImportDumper.cpp index 8aedc31..656ca32 100644 --- a/llvm/tools/llvm-readobj/COFFImportDumper.cpp +++ b/llvm/tools/llvm-readobj/COFFImportDumper.cpp @@ -47,6 +47,9 @@ void dumpCOFFImportFile(const COFFImportFile *File, ScopedPrinter &Writer) { break; } + if (H->getNameType() != COFF::IMPORT_ORDINAL) + Writer.printString("Export name", File->getExportName()); + for (const object::BasicSymbolRef &Sym : File->symbols()) { raw_ostream &OS = Writer.startLine(); OS << "Symbol: "; |