mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32: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) {
|
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.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user