mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
Revert LLD patch
The source is now squeaky-clean again.
This commit is contained in:
parent
2b624fea84
commit
60cf3f8a8c
16
deps/lld/COFF/DriverUtils.cpp
vendored
16
deps/lld/COFF/DriverUtils.cpp
vendored
@ -638,18 +638,10 @@ void fixupExports() {
|
||||
|
||||
if (config->killAt && config->machine == I386) {
|
||||
for (Export &e : config->exports) {
|
||||
if (!e.name.empty() && e.name[0] == '?')
|
||||
continue;
|
||||
e.symbolName = e.name;
|
||||
// Trim off the trailing decoration. Symbols will always have a
|
||||
// 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.
|
||||
e.name = killAt(e.name, true);
|
||||
e.exportName = killAt(e.exportName, false);
|
||||
e.extName = killAt(e.extName, true);
|
||||
e.symbolName = killAt(e.symbolName, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user