[llvm-branch-commits] [clang] cb8e6e7 - [PATCH] Make -funwind-tables the default on all archs

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 3 01:15:47 PDT 2022


Author: serge-sans-paille
Date: 2022-05-03T10:05:28+02:00
New Revision: cb8e6e7bde2ea74d07a3307cc089270d7283ebfe

URL: https://github.com/llvm/llvm-project/commit/cb8e6e7bde2ea74d07a3307cc089270d7283ebfe
DIFF: https://github.com/llvm/llvm-project/commit/cb8e6e7bde2ea74d07a3307cc089270d7283ebfe.diff

LOG: [PATCH] Make -funwind-tables the default on all archs

Added: 
    

Modified: 
    clang/lib/Driver/ToolChain.cpp
    clang/lib/Driver/ToolChains/Gnu.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index 991ad560d1519..0926e6846cb22 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -259,7 +259,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const {
 }
 
 bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const {
-  return false;
+  return true;
 }
 
 Tool *ToolChain::getClang() const {

diff  --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 183828dcaa734..0a0d4676ff6f2 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2818,7 +2818,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
   case llvm::Triple::x86_64:
     return true;
   default:
-    return false;
+    return true;
   }
 }
 


        


More information about the llvm-branch-commits mailing list