diff options
author | Nico Rieck <nico.rieck@gmail.com> | 2014-01-14 11:53:26 +0000 |
---|---|---|
committer | Nico Rieck <nico.rieck@gmail.com> | 2014-01-14 11:53:26 +0000 |
commit | da881a2742387360206798093624f6b226807d1b (patch) | |
tree | 110f2fc9cfeb00483a6923c732a5c9b41d11e7f9 /llvm/lib/Bitcode | |
parent | 263fde068f11f55ca928899f6fc15416191f8252 (diff) | |
download | bcm5719-llvm-da881a2742387360206798093624f6b226807d1b.tar.gz bcm5719-llvm-da881a2742387360206798093624f6b226807d1b.zip |
Fix fastcall mangling of dllimported symbols
fastcall requires @ as global prefix instead of _ but getNameWithPrefix
wrongly assumes the OutName buffer is empty and replaces at index 0.
For imported functions this buffer is pre-filled with "__imp_" resulting
in broken "@_imp_foo@0" mangling.
Instead replace at the proper index. We also never have to prepend the
@-prefix because this fastcall mangling is only used on 32-bit Windows
targets which have _ has global prefix.
llvm-svn: 199203
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions