1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm/Object
Reid Kleckner 21e60a9aff Re-land "COFF: migrate def parser from LLD to LLVM"
This reverts commit r304561 and re-lands r303490 & co.

The fix was to use "SymbolName" when translating LLD's internal export
list to lib/Object's short export struct. The SymbolName reflects the
actual symbol name, which may include fastcall and stdcall mangling bits
not included in the /EXPORT or .def file EXPORTS name:

@@ -434,8 +434,7 @@ std::vector<COFFShortExport> createCOFFShortExportFromConfig() {
   std::vector<COFFShortExport> Exports;
   for (Export &E1 : Config->Exports) {
     COFFShortExport E2;
-    E2.Name = E1.Name;
+    // Use SymbolName, which will have any stdcall or fastcall qualifiers.
+    E2.Name = E1.SymbolName;
     E2.ExtName = E1.ExtName;
     E2.Ordinal = E1.Ordinal;
     E2.Noname = E1.Noname;

llvm-svn: 304573
2017-06-02 17:53:06 +00:00
..
Archive.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-19 23:02:10 +00:00
ArchiveWriter.h Only computeRelativePath() on new members 2016-11-30 22:32:58 +00:00
Binary.h Print symbols from COFF import libraries. 2017-05-24 23:40:36 +00:00
COFF.h Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
COFFImportFile.h Re-land "COFF: migrate def parser from LLD to LLVM" 2017-06-02 17:53:06 +00:00
COFFModuleDefinition.h Re-land "COFF: migrate def parser from LLD to LLVM" 2017-06-02 17:53:06 +00:00
Decompressor.h [lib/Object] - Fix build bot after r303331 "[lib/Object] - Minor API update for llvm::Decompressor". 2017-05-18 08:14:43 +00:00
ELF.h Use existing helper. NFC. 2017-05-18 18:24:11 +00:00
ELFObjectFile.h Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
ELFTypes.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
Error.h
IRObjectFile.h Object: Make IRObjectFile own multiple modules and enumerate symbols from all modules. 2016-12-13 20:20:17 +00:00
IRSymtab.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
MachO.h Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
MachOUniversal.h Fix a bugs with using some Mach-O command line flags like "-arch armv7m". 2016-12-16 22:54:02 +00:00
ModuleSymbolTable.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
ObjectFile.h Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
RelocVisitor.h Tidy up RelocVisitor.h. 2017-05-26 00:58:21 +00:00
StackMapParser.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-24 23:21:38 +00:00
SymbolicFile.h [Object] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-04-19 23:02:10 +00:00
SymbolSize.h Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00
Wasm.h Recommit "[DWARF] - Make collectAddressRanges() return section index in addition to Low/High PC" 2017-05-27 18:10:23 +00:00
WindowsResource.h [Object] Remove unused field + constructor. 2017-05-30 19:37:02 +00:00