aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2014-01-14 11:53:26 +0000
committerNico Rieck <nico.rieck@gmail.com>2014-01-14 11:53:26 +0000
commitda881a2742387360206798093624f6b226807d1b (patch)
tree110f2fc9cfeb00483a6923c732a5c9b41d11e7f9 /clang/lib/Frontend/InitPreprocessor.cpp
parent263fde068f11f55ca928899f6fc15416191f8252 (diff)
downloadllvm-da881a2742387360206798093624f6b226807d1b.zip
llvm-da881a2742387360206798093624f6b226807d1b.tar.gz
llvm-da881a2742387360206798093624f6b226807d1b.tar.bz2
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 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions