aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-12-18 08:32:37 +0000
committerMartin Storsjo <martin@martin.st>2018-12-18 08:32:37 +0000
commit8f0cb9c3a83be57e8c485e03e21dafa43f795d45 (patch)
treecf43136a57c678ca2df1f36d67bf1254289b5342 /llvm/lib/MC/MCObjectFileInfo.cpp
parent284d426f6d258dbeac7109723b840bfa5b65ef8a (diff)
downloadllvm-8f0cb9c3a83be57e8c485e03e21dafa43f795d45.zip
llvm-8f0cb9c3a83be57e8c485e03e21dafa43f795d45.tar.gz
llvm-8f0cb9c3a83be57e8c485e03e21dafa43f795d45.tar.bz2
[AArch64] [MinGW] Allow enabling SEH exceptions
The default still is dwarf, but SEH exceptions can now be enabled optionally for the MinGW target. Differential Revision: https://reviews.llvm.org/D55748 llvm-svn: 349451
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index be671af..9e35355 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -510,7 +510,7 @@ 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) {
+ if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::aarch64) {
// On Windows 64 with SEH, the LSDA is emitted into the .xdata section
LSDASection = nullptr;
} else {