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 | ed7fc4b7756ba948fe039655462ad1dcc9d7d7ca (patch) | |
tree | 0f766904b2d5d8c54b6c86b4cbf44f1c171ccdd4 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | a35f04aa9065583871df1dd70b222beee5413759 (diff) | |
download | bcm5719-llvm-ed7fc4b7756ba948fe039655462ad1dcc9d7d7ca.tar.gz bcm5719-llvm-ed7fc4b7756ba948fe039655462ad1dcc9d7d7ca.zip |
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.
llvm-svn: 210406
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index ee12ff3e1b1..d3d08323447 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/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 | |