Use proper section suffix for COFF weak symbols
authorNico Rieck <nico.rieck@gmail.com>
Mon, 29 Jul 2013 13:58:39 +0000 (13:58 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Mon, 29 Jul 2013 13:58:39 +0000 (13:58 +0000)
commit7fdaee8f1520458a96fa47e58ef64ce164e16b8e
treea6ae36d4245de574b1843181a9ddf384941ce588
parent06d17c80cc8947a4ccf79cdb59547607a215050a
Use proper section suffix for COFF weak symbols

32-bit symbols have "_" as global prefix, but when forming the name of
COMDAT sections this prefix is ignored. The current behavior assumes that
this prefix is always present which is not the case for 64-bit and names
are truncated.

llvm-svn: 187356
llvm/include/llvm/Target/Mangler.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/Target/Mangler.cpp
llvm/test/MC/COFF/weak-symbol-section-specification.ll [deleted file]
llvm/test/MC/COFF/weak-symbol.ll [new file with mode: 0644]