Revert LLD patch

The source is now squeaky-clean again.
This commit is contained in:
LemonBoy 2019-10-12 10:57:11 +02:00
parent 2b624fea84
commit 60cf3f8a8c

View File

@ -638,18 +638,10 @@ void fixupExports() {
if (config->killAt && config->machine == I386) { if (config->killAt && config->machine == I386) {
for (Export &e : config->exports) { for (Export &e : config->exports) {
if (!e.name.empty() && e.name[0] == '?') e.name = killAt(e.name, true);
continue; e.exportName = killAt(e.exportName, false);
e.symbolName = e.name; e.extName = killAt(e.extName, true);
// Trim off the trailing decoration. Symbols will always have a e.symbolName = killAt(e.symbolName, true);
// starting prefix here (either _ for cdecl/stdcall, @ for fastcall
// or ? for C++ functions). Vectorcall functions won't have any
// fixed prefix, but the function base name will still be at least
// one char.
e.name = e.name.substr(0, e.name.find('@', 1));
// By making sure E.SymbolName != E.Name for decorated symbols,
// writeImportLibrary writes these symbols with the type
// IMPORT_NAME_UNDECORATE.
} }
} }