File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ class LLVM_LIBRARY_VISIBILITY OpenBSD : public Generic_ELF {
82
82
std::string getCompilerRT (const llvm::opt::ArgList &Args, StringRef Component,
83
83
FileType Type = ToolChain::FT_Static) const override ;
84
84
85
+ bool IsUnwindTablesDefault (const llvm::opt::ArgList &Args) const override {
86
+ return true ;
87
+ }
88
+
85
89
LangOptions::StackProtectorMode
86
90
GetDefaultStackProtectorLevel (bool KernelOrKext) const override {
87
91
return LangOptions::SSPStrong;
Original file line number Diff line number Diff line change 121
121
// RUN: %clang -target powerpc-unknown-openbsd -### -c %s 2>&1 \
122
122
// RUN: | FileCheck -check-prefix=CHECK-POWERPC-SECUREPLT %s
123
123
// CHECK-POWERPC-SECUREPLT: "-target-feature" "+secure-plt"
124
+
125
+ // Check that unwind tables are enabled
126
+ // RUN: %clang -target arm-unknown-openbsd -### -S %s 2>&1 | \
127
+ // RUN: FileCheck -check-prefix=UNWIND-TABLES %s
128
+ // RUN: %clang -target mips64-unknown-openbsd -### -S %s 2>&1 | \
129
+ // RUN: FileCheck -check-prefix=UNWIND-TABLES %s
130
+ // UNWIND-TABLES: "-funwind-tables=2"
You can’t perform that action at this time.
0 commit comments