aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-09-21 02:34:45 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-09-21 02:34:45 +0000
commit023d90edb0eeba0541424046b992f0d7394441bc (patch)
tree3b9896ac849af3f2fb19976fbb9fbaf1135f8fc0 /lib/MC/MCObjectFileInfo.cpp
parented7fd711a1917a31714d3f9a41210916be450079 (diff)
downloadexternal_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
Diffstat (limited to 'lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--lib/MC/MCObjectFileInfo.cpp3
1 files changed, 3 insertions, 0 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,