[PATCH] D126862: [clang] [MSVC] Enable unwind tables for ARM
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 02:32:40 PDT 2022
mstorsjo created this revision.
mstorsjo added reviewers: efriedma, zzheng.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: clang.
The backend now can generate working unwind information for this
target.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126862
Files:
clang/lib/Driver/ToolChains/MSVC.cpp
Index: clang/lib/Driver/ToolChains/MSVC.cpp
===================================================================
--- clang/lib/Driver/ToolChains/MSVC.cpp
+++ clang/lib/Driver/ToolChains/MSVC.cpp
@@ -449,8 +449,8 @@
// All non-x86_32 Windows targets require unwind tables. However, LLVM
// doesn't know how to generate them for all targets, so only enable
// the ones that are actually implemented.
- return getArch() == llvm::Triple::x86_64 ||
- getArch() == llvm::Triple::aarch64;
+ return getArch() == llvm::Triple::x86_64 || getArch() == llvm::Triple::arm ||
+ getArch() == llvm::Triple::thumb || getArch() == llvm::Triple::aarch64;
}
bool MSVCToolChain::isPICDefault() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126862.433695.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220602/e0e7fc65/attachment.bin>
More information about the cfe-commits
mailing list