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 @@ -342,3 +342,12 @@ Tool *OpenBSD::buildAssembler() const {
342
342
Tool *OpenBSD::buildLinker () const { return new tools::openbsd::Linker (*this ); }
343
343
344
344
bool OpenBSD::HasNativeLLVMSupport () const { return true ; }
345
+
346
+ bool OpenBSD::IsUnwindTablesDefault (const ArgList &Args) const {
347
+ switch (getArch ()) {
348
+ case llvm::Triple::arm:
349
+ return false ;
350
+ default :
351
+ return true ;
352
+ }
353
+ }
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 124
124
125
125
// Check that unwind tables are enabled
126
126
// RUN: %clang -target arm-unknown-openbsd -### -S %s 2>&1 | \
127
- // RUN: FileCheck -check-prefix=UNWIND-TABLES %s
127
+ // RUN: FileCheck -check-prefix=NO- UNWIND-TABLES %s
128
128
// RUN: %clang -target mips64-unknown-openbsd -### -S %s 2>&1 | \
129
129
// RUN: FileCheck -check-prefix=UNWIND-TABLES %s
130
130
// UNWIND-TABLES: "-funwind-tables=2"
131
+ // NO-UNWIND-TABLES-NOT: "-funwind-tables=2"
You can’t perform that action at this time.
0 commit comments