diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-08-13 01:23:53 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-08-13 01:23:53 +0000 |
commit | 6aa9315353574c000c5f2aa0edd34067e94b8c79 (patch) | |
tree | 2ea0f27b03ab2584d19178ff30b75526aa1f0ba4 /test/MC | |
parent | 0710bfa8667ea08ede15bf4f801f25418b4cefa0 (diff) | |
download | external_llvm-6aa9315353574c000c5f2aa0edd34067e94b8c79.zip external_llvm-6aa9315353574c000c5f2aa0edd34067e94b8c79.tar.gz external_llvm-6aa9315353574c000c5f2aa0edd34067e94b8c79.tar.bz2 |
[-cxx-abi microsoft] Stick zero initialized symbols into the .bss section for COFF
Summary:
We need to do two things:
- Initialize BSSSection in MCObjectFileInfo::InitCOFFMCObjectFileInfo
- Teach TargetLoweringObjectFileCOFF::SelectSectionForGlobal what to do
with it
This fixes PR16861.
Reviewers: rnk
Reviewed By: rnk
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1361
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/COFF/bss_section.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/COFF/bss_section.ll b/test/MC/COFF/bss_section.ll new file mode 100644 index 0000000..60924f1 --- /dev/null +++ b/test/MC/COFF/bss_section.ll @@ -0,0 +1,6 @@ +; RUN: llc -mtriple i386-pc-win32 < %s | FileCheck %s + +%struct.foo = type { i32, i32 } + +@"\01?thingy@@3Ufoo@@B" = global %struct.foo zeroinitializer, align 4 +; CHECK: .bss |