Initialize BSSSection explicitly in InitMachOMCObjectFileInfo() to appease msvc.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 21 Sep 2013 02:34:45 +0000 (02:34 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 21 Sep 2013 02:34:45 +0000 (02:34 +0000)
This can revert r191087.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCObjectFileInfo.cpp
test/CodeGen/ARM/coalesce-dbgvalue.ll
test/DebugInfo/X86/dbg-subrange.ll
test/DebugInfo/X86/stringpool.ll

index c620e8c6eef583621a882268040a620c82b71834..958648c656ef47a7e9eca2f3c0bb21ee3f50bcb3 100644 (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,
index a51c6e0623667ccdbe8973a8a630bd1d2724b217..9ddd66c32aea44fc1978e0f9efec140260c59e55 100644 (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"
 
index 10244f7189e007a0dc0fee386d77f51e11c477e4..62580dc19c9c5531b187a6fcf59c7c45bf1c493a 100644 (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
 
index 40b5977eedd0fe304490b4d69a4763c2b3eb1810..c8cba73956525c879086d1be634abb45bd399509 100644 (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}