diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-08 00:34:27 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-08 00:34:27 +0000 |
commit | a926467222cb4843d991e4d2f19d42bfed4b3e99 (patch) | |
tree | dc3cf2b171d00f6772759f267e25c877fab18d72 /lib/MC | |
parent | 83444b887d285223b36449b901f3dea72d52c32e (diff) | |
download | llvm-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.cpp | 2 |
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 | |