Initialize BSSSection explicitly in InitMachOMCObjectFileInfo() to appease msvc.

This can revert r191087.

llvm-svn: 191128
This commit is contained in:
NAKAMURA Takumi 2013-09-21 02:34:45 +00:00
parent ead6f1699d
commit 68fa6f9d36
4 changed files with 3 additions and 9 deletions

View File

@ -39,6 +39,9 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
= Ctx->getMachOSection("__DATA", "__data", 0,
SectionKind::getDataRel());
// BSSSection might not be expected initialized on msvc.
BSSSection = 0;
TLSDataSection // .tdata
= Ctx->getMachOSection("__DATA", "__thread_data",
MCSectionMachO::S_THREAD_LOCAL_REGULAR,

View File

@ -6,9 +6,6 @@
; instruction which must be updated during
; ConnectedVNInfoEqClasses::Distribute().
; FIXME: Investigating.
; XFAIL: win32
target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
target triple = "thumbv7-apple-ios3.0.0"

View File

@ -3,9 +3,6 @@
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.7.2"
; FIXME: Investigating.
; XFAIL: win32
@s = common global [4294967296 x i8] zeroinitializer, align 16
;CHECK: .long 4294967295

View File

@ -1,9 +1,6 @@
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=LINUX
; RUN: llc -mtriple=x86_64-darwin < %s | FileCheck %s --check-prefix=DARWIN
; FIXME: Investigating.
; XFAIL: win32
@yyyy = common global i32 0, align 4
!llvm.dbg.cu = !{!0}