File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -345,3 +345,12 @@ Tool *OpenBSD::buildAssembler() const {
345
345
Tool *OpenBSD::buildLinker () const { return new tools::openbsd::Linker (*this ); }
346
346
347
347
bool OpenBSD::HasNativeLLVMSupport () const { return true ; }
348
+
349
+ bool OpenBSD::IsUnwindTablesDefault (const ArgList &Args) const {
350
+ switch (getArch ()) {
351
+ case llvm::Triple::arm:
352
+ return false ;
353
+ default :
354
+ return true ;
355
+ }
356
+ }
Original file line number Diff line number Diff line change @@ -82,9 +82,7 @@ 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
- }
85
+ bool IsUnwindTablesDefault (const llvm::opt::ArgList &Args) const override ;
88
86
89
87
LangOptions::StackProtectorMode
90
88
GetDefaultStackProtectorLevel (bool KernelOrKext) const override {
Original file line number Diff line number Diff line change 121
121
122
122
// Check that unwind tables are enabled
123
123
// RUN: %clang -target arm-unknown-openbsd -### -S %s 2>&1 | \
124
- // RUN: FileCheck -check-prefix=UNWIND-TABLES %s
124
+ // RUN: FileCheck -check-prefix=NO- UNWIND-TABLES %s
125
125
// RUN: %clang -target mips64-unknown-openbsd -### -S %s 2>&1 | \
126
126
// RUN: FileCheck -check-prefix=UNWIND-TABLES %s
127
127
// UNWIND-TABLES: "-funwind-tables=2"
128
+ // NO-UNWIND-TABLES-NOT: "-funwind-tables=2"
You can’t perform that action at this time.
0 commit comments