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)
commitfdbea5107b5a8249421fd5e603a31f40f05ea25f
tree8fad36d3436d0bb285eb5182e011f6f626e78391
parent944061c4e152e9f66ffaaca5905253ba8012a4fa
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187356 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/Mangler.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/Target/Mangler.cpp
test/MC/COFF/weak-symbol-section-specification.ll [deleted file]
test/MC/COFF/weak-symbol.ll [new file with mode: 0644]