diff options
| author | Nirav Dave <niravd@google.com> | 2016-04-05 17:50:43 +0000 |
|---|---|---|
| committer | Nirav Dave <niravd@google.com> | 2016-04-05 17:50:43 +0000 |
| commit | d2f44d8de01a635e197b3ad4dcafdab5f2b4408a (patch) | |
| tree | 036b34df394049a6f3e996a2155d8026153027cd /clang/test/CodeGen | |
| parent | 376ab7cc7bf65e7c14308a4a4f6d411883097f9c (diff) | |
| download | bcm5719-llvm-d2f44d8de01a635e197b3ad4dcafdab5f2b4408a.tar.gz bcm5719-llvm-d2f44d8de01a635e197b3ad4dcafdab5f2b4408a.zip | |
Add -fno-jump-tables and-fjump-tables flags
Add no-jump-tables flag to disable use of jump tables when lowering
switch statements
Reviewers: echristo, hans
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D18407
llvm-svn: 265425
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/nousejumptable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/nousejumptable.c b/clang/test/CodeGen/nousejumptable.c new file mode 100644 index 00000000000..91ad5818570 --- /dev/null +++ b/clang/test/CodeGen/nousejumptable.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -S -fno-jump-tables %s -emit-llvm -o - | FileCheck %s + +// CHECK-LABEL: main +// CHECK: attributes #0 = {{.*}}"no-jump-tables"="true"{{.*}} + +int main() { + return 0; +} |

