diff options
author | Amir Ayupov <aaupov@fb.com> | 2022-09-07 19:17:39 -0700 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2022-09-07 20:45:41 -0700 |
commit | a80e1e493f33ef99684ffea58548f28cf2786b73 (patch) | |
tree | d4c9e2b86876b526a07e074c94bdea3954c54069 /bolt | |
parent | 01cea7ac1005a4e31c5328a96ddc6ff39c7df936 (diff) | |
download | llvm-a80e1e493f33ef99684ffea58548f28cf2786b73.zip llvm-a80e1e493f33ef99684ffea58548f28cf2786b73.tar.gz llvm-a80e1e493f33ef99684ffea58548f28cf2786b73.tar.bz2 |
[BOLT][TEST] Remove functions with dynamic exception specification
Clang has switched to gnu++17 by default with https://reviews.llvm.org/D131465.
C++17 removes dynamic exception specification. Remove its use as it wasn't
properly tested.
Reviewed By: maksfb
Differential Revision: https://reviews.llvm.org/D133467
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/test/runtime/X86/Inputs/exception3.cpp | 6 | ||||
-rw-r--r-- | bolt/test/runtime/X86/Inputs/exception4.cpp | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/bolt/test/runtime/X86/Inputs/exception3.cpp b/bolt/test/runtime/X86/Inputs/exception3.cpp index 3755784..5d3a27b 100644 --- a/bolt/test/runtime/X86/Inputs/exception3.cpp +++ b/bolt/test/runtime/X86/Inputs/exception3.cpp @@ -16,10 +16,6 @@ void foo(int a) throw ExcC(); } -void filter_only(int a) throw (ExcA, ExcB, ExcC, ExcD, ExcE, ExcF) { - foo(a); -} - int main(int argc, char **argv) { asm volatile ("nop;nop;nop;nop;nop"); @@ -41,7 +37,7 @@ int main(int argc, char **argv) asm volatile ("nop;nop;nop;nop;nop"); try { asm volatile ("nop;nop;nop;nop;nop"); - filter_only(argc); + foo(argc); } catch (ExcC) { asm volatile ("nop;nop;nop;nop;nop"); printf("caught ExcC\n"); diff --git a/bolt/test/runtime/X86/Inputs/exception4.cpp b/bolt/test/runtime/X86/Inputs/exception4.cpp index b571bd4..8a372ff 100644 --- a/bolt/test/runtime/X86/Inputs/exception4.cpp +++ b/bolt/test/runtime/X86/Inputs/exception4.cpp @@ -16,10 +16,6 @@ void foo(int a) throw ExcC(); } -void filter_only(int a) throw (ExcA, ExcB, ExcC, ExcD, ExcE, ExcF) { - foo(a); -} - void never_throws() throw () { printf("this statement is cold and should be outlined\n"); } @@ -46,7 +42,7 @@ int main(int argc, char **argv) try { try { - filter_only(argc); + foo(argc); } catch (ExcC) { printf("caught ExcC\n"); } |