mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
8147ef1372
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; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304573 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
533 B
CMake
31 lines
533 B
CMake
add_llvm_library(LLVMObject
|
|
Archive.cpp
|
|
ArchiveWriter.cpp
|
|
Binary.cpp
|
|
COFFImportFile.cpp
|
|
COFFModuleDefinition.cpp
|
|
COFFObjectFile.cpp
|
|
Decompressor.cpp
|
|
ELF.cpp
|
|
ELFObjectFile.cpp
|
|
Error.cpp
|
|
IRObjectFile.cpp
|
|
IRSymtab.cpp
|
|
MachOObjectFile.cpp
|
|
MachOUniversal.cpp
|
|
ModuleSymbolTable.cpp
|
|
Object.cpp
|
|
ObjectFile.cpp
|
|
RecordStreamer.cpp
|
|
SymbolicFile.cpp
|
|
SymbolSize.cpp
|
|
WasmObjectFile.cpp
|
|
WindowsResource.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|