Revert "coff also doesn't have a ReadOnlySection yet, (!)"
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 8 Aug 2013 01:50:52 +0000 (01:50 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 8 Aug 2013 01:50:52 +0000 (01:50 +0000)
commitf76d6b3712ffe332dff21c0e17bf8ba6c4222366
tree85de35c2156feccabd34aef63d08e42b1619c0c1
parent493df1a14f5dc5267a029c6ff58018efe0647297
Revert "coff also doesn't have a ReadOnlySection yet, (!)"

This reverts commit r77814.

We were sticking global constants in the .data section instead of in the
.rdata section when emitting for COFF.

This fixes PR16831.

llvm-svn: 187956
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/MC/COFF/rdata.ll [new file with mode: 0644]