mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

This is a re-apply of r319294. adds -fseh-exceptions and -fdwarf-exceptions flags clang will check if the user has specified an exception model flag, in the absense of specifying the exception model clang will then check the driver default and append the model flag for that target to cc1 -fno-exceptions has a higher priority then specifying the model move __SEH__ macro definitions out of Targets into InitPreprocessor behind the -fseh-exceptions flag move __ARM_DWARF_EH__ macrodefinitions out of verious targets and into InitPreprocessor behind the -fdwarf-exceptions flag and arm|thumb check remove unused USESEHExceptions from the MinGW Driver fold USESjLjExceptions into a new GetExceptionModel function that gives the toolchain classes more flexibility with eh models Reviewers: rnk, mstorsjo Differential Revision: https://reviews.llvm.org/D39673 llvm-svn: 319297
23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
// RUN: %clang -target x86_64-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SEH
|
|
// RUN: %clang -target i686-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fdwarf-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -fseh-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SEH
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fsjlj-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fdwarf-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// CHECK-SEH: "-fseh-exceptions"
|
|
// CHECK-SJLJ: "-fsjlj-exceptions"
|
|
// CHECK-DWARF-NOT: "-fsjlj-exceptions"
|
|
// CHECK-DWARF-NOT: "-fseh-exceptions"
|