To have finer control of IR uwtable attribute generation. For target code generation, IR nounwind and uwtable may have some interaction. However, for frontend, there are no semantic interactions so the this new `nouwtable` is marked "SimpleHandler = 1". Differential Revision: https://reviews.llvm.org/D132592
10 lines
242 B
C
10 lines
242 B
C
// RUN: %clang_cc1 -funwind-tables=2 -S -emit-llvm %s -o - | FileCheck %s
|
|
|
|
__attribute__((nouwtable))
|
|
int test1(void) { return 0; }
|
|
|
|
// CHECK: @test1{{.*}}[[ATTR1:#[0-9]+]]
|
|
// CHECK: attributes [[ATTR1]] = {
|
|
// CHECK-NOT: uwtable
|
|
// CHECK: }
|