diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-09-21 02:34:45 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-09-21 02:34:45 +0000 |
commit | 023d90edb0eeba0541424046b992f0d7394441bc (patch) | |
tree | 3b9896ac849af3f2fb19976fbb9fbaf1135f8fc0 | |
parent | ed7fd711a1917a31714d3f9a41210916be450079 (diff) | |
download | external_llvm-023d90edb0eeba0541424046b992f0d7394441bc.tar.gz external_llvm-023d90edb0eeba0541424046b992f0d7394441bc.tar.bz2 external_llvm-023d90edb0eeba0541424046b992f0d7394441bc.zip |
Initialize BSSSection explicitly in InitMachOMCObjectFileInfo() to appease msvc.
This can revert r191087.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191128 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/MCObjectFileInfo.cpp | 3 | ||||
-rw-r--r-- | test/CodeGen/ARM/coalesce-dbgvalue.ll | 3 | ||||
-rw-r--r-- | test/DebugInfo/X86/dbg-subrange.ll | 3 | ||||
-rw-r--r-- | test/DebugInfo/X86/stringpool.ll | 3 |
4 files changed, 3 insertions, 9 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index c620e8c6ee..958648c656 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/lib/MC/MCObjectFileInfo.cpp @@ -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, diff --git a/test/CodeGen/ARM/coalesce-dbgvalue.ll b/test/CodeGen/ARM/coalesce-dbgvalue.ll index a51c6e0623..9ddd66c32a 100644 --- a/test/CodeGen/ARM/coalesce-dbgvalue.ll +++ b/test/CodeGen/ARM/coalesce-dbgvalue.ll @@ -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" diff --git a/test/DebugInfo/X86/dbg-subrange.ll b/test/DebugInfo/X86/dbg-subrange.ll index 10244f7189..62580dc19c 100644 --- a/test/DebugInfo/X86/dbg-subrange.ll +++ b/test/DebugInfo/X86/dbg-subrange.ll @@ -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 diff --git a/test/DebugInfo/X86/stringpool.ll b/test/DebugInfo/X86/stringpool.ll index 40b5977eed..c8cba73956 100644 --- a/test/DebugInfo/X86/stringpool.ll +++ b/test/DebugInfo/X86/stringpool.ll @@ -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} |