[PATCH] D133467: [BOLT][TEST] Remove functions with dynamic exception specification

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 20:45:52 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa80e1e493f33: [BOLT][TEST] Remove functions with dynamic exception specification (authored by Amir).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133467/new/

https://reviews.llvm.org/D133467

Files:
  bolt/test/runtime/X86/Inputs/exception3.cpp
  bolt/test/runtime/X86/Inputs/exception4.cpp


Index: bolt/test/runtime/X86/Inputs/exception4.cpp
===================================================================
--- bolt/test/runtime/X86/Inputs/exception4.cpp
+++ bolt/test/runtime/X86/Inputs/exception4.cpp
@@ -16,10 +16,6 @@
     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 @@
 
     try {
       try {
-        filter_only(argc);
+        foo(argc);
       } catch (ExcC) {
         printf("caught ExcC\n");
       }
Index: bolt/test/runtime/X86/Inputs/exception3.cpp
===================================================================
--- bolt/test/runtime/X86/Inputs/exception3.cpp
+++ bolt/test/runtime/X86/Inputs/exception3.cpp
@@ -16,10 +16,6 @@
     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 @@
     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");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133467.458635.patch
Type: text/x-patch
Size: 1281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220908/cd487a54/attachment.bin>


More information about the llvm-commits mailing list