Remove x86/Windows name mangling hack

Let's fix this properly by generating the correct lib files from the
mingw sources.
This commit is contained in:
LemonBoy
2019-10-09 22:07:05 +02:00
parent f83bb3dd9e
commit 9ae293ae3b
2 changed files with 6 additions and 12 deletions

View File

@@ -415,16 +415,8 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) {
bool external_linkage = linkage != GlobalLinkageIdInternal;
CallingConvention cc = fn->type_entry->data.fn.fn_type_id.cc;
if (cc == CallingConventionStdcall && external_linkage &&
g->zig_target->arch == ZigLLVM_x86)
{
// prevent llvm name mangling
symbol_name = buf_ptr(buf_sprintf("\x01_%s", symbol_name));
}
bool is_async = fn_is_async(fn);
ZigType *fn_type = fn->type_entry;
// Make the raw_type_ref populated
resolve_llvm_types_fn(g, fn);