diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-09-24 17:51:51 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-09-24 17:51:51 +0000 |
| commit | 1c244f5db387956f1e23c179b1c5ad0eba4693b5 (patch) | |
| tree | eab266634c20f3f1b71c2e14b46c443d63ff9ff9 | |
| parent | 2e0717e129b0de854b16ac6ff7398462ac89cf37 (diff) | |
| download | bcm5719-llvm-1c244f5db387956f1e23c179b1c5ad0eba4693b5.tar.gz bcm5719-llvm-1c244f5db387956f1e23c179b1c5ad0eba4693b5.zip | |
[PECOFF] Do not print @<ordinal> if the symbol is private
lib.exe prints a warning if a symbol in a module definition file has
both the PRIVATE attribute and an ordinal like this.
EXPORTS
foo @1 PRIVATE
This patch suppresses that.
llvm-svn: 218395
| -rw-r--r-- | lld/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp b/lld/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp index 3926932fdf8..16d64d4182e 100644 --- a/lld/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp +++ b/lld/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp @@ -30,7 +30,9 @@ createModuleDefinitionFile(const PECOFFLinkingContext &ctx) { << "EXPORTS\n"; for (const PECOFFLinkingContext::ExportDesc &desc : ctx.getDllExports()) { - os << " " << desc.externalName << " @" << desc.ordinal; + os << " " << desc.externalName; + if (!desc.isPrivate) + os << " @" << desc.ordinal; if (desc.noname) os << " NONAME"; if (desc.isData) |

