aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-05-13 11:45:52 +0300
committerMartin Storsjö <martin@martin.st>2022-06-06 23:27:19 +0300
commit98dc3e86fd0f22093f1431457c058c70af1db35d (patch)
tree6814988f5fee6352558a7d3a4c7e8697c4c71410 /llvm/lib/MC/MCObjectFileInfo.cpp
parent08d30c602bcf3bc25a02938f2663a1b9e96a7cbe (diff)
downloadllvm-98dc3e86fd0f22093f1431457c058c70af1db35d.zip
llvm-98dc3e86fd0f22093f1431457c058c70af1db35d.tar.gz
llvm-98dc3e86fd0f22093f1431457c058c70af1db35d.tar.bz2
[ARM] [MinGW] Default to WinEH exception handling instead of Dwarf
Switching this target to WinEH also seems to affect the `-windows-itanium` target. Differential Revision: https://reviews.llvm.org/D126870
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index d56f72c..0d08976 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -564,8 +564,9 @@ void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {
".rdata", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ,
SectionKind::getReadOnly());
- if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::aarch64) {
- // On Windows 64 with SEH, the LSDA is emitted into the .xdata section
+ if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::aarch64 ||
+ T.getArch() == Triple::arm || T.getArch() == Triple::thumb) {
+ // On Windows with SEH, the LSDA is emitted into the .xdata section
LSDASection = nullptr;
} else {
LSDASection = Ctx->getCOFFSection(".gcc_except_table",