diff options
author | Vyacheslav Zakharin <vyacheslav.p.zakharin@intel.com> | 2019-08-19 21:07:03 +0000 |
---|---|---|
committer | Vyacheslav Zakharin <vyacheslav.p.zakharin@intel.com> | 2019-08-19 21:07:03 +0000 |
commit | f7229ac7d88ef7a47732cc3438b87f70e00ec6af (patch) | |
tree | 7f7c3031890dbc06ee4a21f54785e17889d2d9bf /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 552bcb854cfdfb7ca4fed8b07630d69f06907971 (diff) | |
download | bcm5719-llvm-f7229ac7d88ef7a47732cc3438b87f70e00ec6af.tar.gz bcm5719-llvm-f7229ac7d88ef7a47732cc3438b87f70e00ec6af.zip |
Fixed placement of llvm.global_dtors on Windows.
Differential revision: https://reviews.llvm.org/D66373
llvm-svn: 369299
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 7eb4901016a..9c1eee0f8fc 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1520,7 +1520,8 @@ static MCSectionCOFF *getCOFFStaticStructorSection(MCContext &Ctx, // internally, so we use ".CRT$XCA00001" for them. SmallString<24> Name; raw_svector_ostream OS(Name); - OS << ".CRT$XC" << (Priority < 200 ? 'A' : 'T') << format("%05u", Priority); + OS << ".CRT$X" << (IsCtor ? "C" : "T") << + (Priority < 200 ? 'A' : 'T') << format("%05u", Priority); MCSectionCOFF *Sec = Ctx.getCOFFSection( Name, COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ, SectionKind::getReadOnly()); |