[PATCH] D53618: [AArch64] [Windows] Emit unwind tables by default.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 31 14:42:43 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rC345781: [AArch64] [Windows] Emit unwind tables by default. (authored by efriedma, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D53618?vs=170767&id=172024#toc

Repository:
  rC Clang

https://reviews.llvm.org/D53618

Files:
  lib/Driver/ToolChains/MSVC.cpp


Index: lib/Driver/ToolChains/MSVC.cpp
===================================================================
--- lib/Driver/ToolChains/MSVC.cpp
+++ lib/Driver/ToolChains/MSVC.cpp
@@ -722,15 +722,15 @@
 }
 
 bool MSVCToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
-  // Emit unwind tables by default on Win64. All non-x86_32 Windows platforms
-  // such as ARM and PPC actually require unwind tables, but LLVM doesn't know
-  // how to generate them yet.
-
   // Don't emit unwind tables by default for MachO targets.
   if (getTriple().isOSBinFormatMachO())
     return false;
 
-  return getArch() == llvm::Triple::x86_64;
+  // 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;
 }
 
 bool MSVCToolChain::isPICDefault() const {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53618.172024.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181031/482819ab/attachment.bin>


More information about the cfe-commits mailing list