[llvm] r210406 - MC: fix ctor/dtor section for windows-itanium
Saleem Abdulrasool
compnerd at compnerd.org
Sat Jun 7 17:34:28 PDT 2014
Author: compnerd
Date: Sat Jun 7 19:34:27 2014
New Revision: 210406
URL: http://llvm.org/viewvc/llvm-project?rev=210406&view=rev
Log:
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.
Modified:
llvm/trunk/lib/MC/MCObjectFileInfo.cpp
Modified: llvm/trunk/lib/MC/MCObjectFileInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=210406&r1=210405&r2=210406&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp Sat Jun 7 19:34:27 2014
@@ -598,7 +598,7 @@ void MCObjectFileInfo::InitCOFFMCObjectF
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 |
More information about the llvm-commits
mailing list