[all-commits] [llvm/llvm-project] f24e58: [clang][cli] Create accessors for exception models...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue Dec 15 01:16:37 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f24e58df7ddf2dc9f13c8f8fc259f0374f04aca3
      https://github.com/llvm/llvm-project/commit/f24e58df7ddf2dc9f13c8f8fc259f0374f04aca3
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.h
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/CodeGen/CGException.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp

  Log Message:
  -----------
  [clang][cli] Create accessors for exception models in LangOptions

This abstracts away the members that are being replaced in a follow-up patch.

Depends on D83979.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D93214


  Commit: 573255b47eb9b210e74a1c620fee363dfaa52794
      https://github.com/llvm/llvm-project/commit/573255b47eb9b210e74a1c620fee363dfaa52794
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Basic/LangOptions.h
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang][cli] Squash exception model in LangOptions into one member

This squashes multiple members in LangOptions into one. This is leveraged in a follow-up patch that implements marshalling of related command-line options.

Depends on D93214.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D93215


  Commit: 56c5548d7f07f5853a2e40562db08dc2e56ece03
      https://github.com/llvm/llvm-project/commit/56c5548d7f07f5853a2e40562db08dc2e56ece03
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CodeGen/exceptions.c
    M clang/test/CodeGen/personality.c
    M clang/test/CodeGenCXX/mingw-w64-exceptions.c
    M clang/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
    M clang/test/CodeGenCXX/personality.cpp
    M clang/test/CodeGenCXX/wasm-eh.cpp
    M clang/test/CodeGenObjC/personality.m
    M clang/test/CodeGenObjCXX/objfw-exceptions.mm
    M clang/test/CodeGenObjCXX/personality.mm
    M clang/test/Driver/arch-armv7k.c
    M clang/test/Driver/freebsd.c
    M clang/test/Driver/fsjlj-exceptions.c
    M clang/test/Driver/ve-toolchain.c
    M clang/test/Driver/ve-toolchain.cpp
    M clang/test/Driver/windows-exceptions.cpp
    M clang/test/Frontend/windows-exceptions.cpp
    M clang/test/Preprocessor/init-arm.c

  Log Message:
  -----------
  [clang][cli] Squash multiple cc1 -fxxx-exceptions flags into single -exception-model=xxx option

This patch enables marshalling of the exception model options while enforcing their mutual exclusivity. The clang driver interface remains the same, this only affects the cc1 command line.

Depends on D93215.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D93216


Compare: https://github.com/llvm/llvm-project/compare/9c328e7afafd...56c5548d7f07


More information about the All-commits mailing list