diff options
| author | Sean Eveson <eveson.sean@gmail.com> | 2018-01-08 13:42:26 +0000 |
|---|---|---|
| committer | Sean Eveson <eveson.sean@gmail.com> | 2018-01-08 13:42:26 +0000 |
| commit | 5110d4f5c01b33889b6959a70eede87457e734e7 (patch) | |
| tree | 4465b4c82b44056338f37c4c94e0198531b1ede8 /clang/test/CodeGen/stack-size-section.c | |
| parent | 3800f0f11d61968ae32ee79bfbdb0b4d808985ba (diff) | |
| download | bcm5719-llvm-5110d4f5c01b33889b6959a70eede87457e734e7.tar.gz bcm5719-llvm-5110d4f5c01b33889b6959a70eede87457e734e7.zip | |
[Driver] Add flag enabling the function stack size section that was added in r319430
Adds the -fstack-size-section flag to enable the .stack_sizes section. The flag defaults to on for the PS4 triple.
Differential Revision: https://reviews.llvm.org/D40712
llvm-svn: 321992
Diffstat (limited to 'clang/test/CodeGen/stack-size-section.c')
| -rw-r--r-- | clang/test/CodeGen/stack-size-section.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/stack-size-section.c b/clang/test/CodeGen/stack-size-section.c new file mode 100644 index 00000000000..f81ba191f75 --- /dev/null +++ b/clang/test/CodeGen/stack-size-section.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple x86_64-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT +// CHECK-ABSENT-NOT: section .stack_sizes + +// RUN: %clang_cc1 -triple x86_64-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT +// CHECK-PRESENT: section .stack_sizes + +int foo() { return 42; } |

