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)
commit9706d43b56e16eb3029314e02c499305284e99f1
tree92d5d58141ec3f56227bcbc089c3a86df6d749b2
parenta1eacd020f3f7fe7f959ad44f206f71055454c45
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/MC/COFF/rdata.ll [new file with mode: 0644]