diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-08-08 01:50:52 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-08-08 01:50:52 +0000 |
commit | 9706d43b56e16eb3029314e02c499305284e99f1 (patch) | |
tree | 92d5d58141ec3f56227bcbc089c3a86df6d749b2 /test/MC | |
parent | a1eacd020f3f7fe7f959ad44f206f71055454c45 (diff) | |
download | llvm-9706d43b56e16eb3029314e02c499305284e99f1.tar.gz llvm-9706d43b56e16eb3029314e02c499305284e99f1.tar.bz2 llvm-9706d43b56e16eb3029314e02c499305284e99f1.tar.xz |
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
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/COFF/rdata.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/COFF/rdata.ll b/test/MC/COFF/rdata.ll new file mode 100644 index 0000000000..f041781170 --- /dev/null +++ b/test/MC/COFF/rdata.ll @@ -0,0 +1,6 @@ +; RUN: llc -mtriple i386-pc-win32 < %s | FileCheck %s + +%struct.foo = type { i32, i32 } + +@"\01?thingy@@3Ufoo@@B" = constant %struct.foo zeroinitializer, align 4 +; CHECK: .section .rdata |