Index: bolt/test/runtime/Inputs/exceptions_split.cpp =================================================================== --- bolt/test/runtime/Inputs/exceptions_split.cpp +++ bolt/test/runtime/Inputs/exceptions_split.cpp @@ -3,31 +3,25 @@ // // Record performance data with no args. Run test with 2 args. -#include #include +#include -int foo() -{ - return 0; -} +int foo() { return 0; } void bar(int a) { if (a > 2 && a % 2) throw new int(); } -void filter_only(){ - foo(); -} +void filter_only() { foo(); } -int main(int argc, char **argv) -{ +int main(int argc, char **argv) { unsigned r = 0; uint64_t limit = (argc >= 2 ? 10 : 5000); for (uint64_t i = 0; i < limit; ++i) { i += foo(); - try { + try { bar(argc); try { if (argc >= 2) Index: bolt/test/runtime/pie-exceptions-split.test =================================================================== --- bolt/test/runtime/pie-exceptions-split.test +++ bolt/test/runtime/pie-exceptions-split.test @@ -16,9 +16,9 @@ ## All calls to printf() should be from exception handling code that was ## recorded as cold during the profile collection run. Check that the calls ## are placed after the split point. -CHECK-NOT: callq printf +CHECK-NOT: {{callq|bl}} printf CHECK: HOT-COLD SPLIT POINT -CHECK: callq printf +CHECK: {{callq|bl}} printf ## Verify the output still executes correctly when the exception path is being ## taken.