summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-08 00:34:27 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-08 00:34:27 +0000
commita926467222cb4843d991e4d2f19d42bfed4b3e99 (patch)
treedc3cf2b171d00f6772759f267e25c877fab18d72 /lib/MC
parent83444b887d285223b36449b901f3dea72d52c32e (diff)
downloadllvm-a926467222cb4843d991e4d2f19d42bfed4b3e99.tar.gz
llvm-a926467222cb4843d991e4d2f19d42bfed4b3e99.tar.bz2
llvm-a926467222cb4843d991e4d2f19d42bfed4b3e99.tar.xz
MC: fix ctor/dtor section for windows-itanium
This adjusts the section setup for the windows-itanium environment. This environment does not report to be a known windows msvc environment, even though it is (nearly) identical to the MSVC environment for C code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCObjectFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp
index ee12ff3e1b..d3d0832344 100644
--- a/lib/MC/MCObjectFileInfo.cpp
+++ b/lib/MC/MCObjectFileInfo.cpp
@@ -598,7 +598,7 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
COFF::IMAGE_SCN_MEM_READ,
SectionKind::getReadOnly());
- if (T.isKnownWindowsMSVCEnvironment()) {
+ if (T.isKnownWindowsMSVCEnvironment() || T.isWindowsItaniumEnvironment()) {
StaticCtorSection =
Ctx->getCOFFSection(".CRT$XCU",
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |