[PATCH] Fix dllexport mangling issue

klutzy klutzytheklutzy at gmail.com
Fri Feb 28 23:29:06 PST 2014


When a symbol is dllexported, LLVM wrongly mangled its name (`func` to
`_func` or `_func at 16` for example). It caused linker error since linker
doesn't accept mangled name for dllexport.

This patch fixes Bug 10174.
---
 lib/Target/X86/X86AsmPrinter.cpp | 30 +++++++++++-------
 test/CodeGen/X86/dllexport.ll    | 68 ++++++++++++++++++++--------------------
 test/MC/COFF/linker-options.ll   |  2 +-
 3 files changed, 54 insertions(+), 46 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-dllexport-mangling-issue.patch
Type: application/octet-stream
Size: 5064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140301/8c709b2e/attachment.obj>


More information about the llvm-commits mailing list