[all-commits] [llvm/llvm-project] d69e9f: [OpaquePtrs][Clang] Add -opaque-pointers/-no-opaqu...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Apr 5 01:15:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d69e9f9d8978399a9d1f1c1ed62aa661440afcd3
      https://github.com/llvm/llvm-project/commit/d69e9f9d8978399a9d1f1c1ed62aa661440afcd3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CodeGenAction.cpp
    A clang/test/CodeGen/opaque-pointers-flag.c

  Log Message:
  -----------
  [OpaquePtrs][Clang] Add -opaque-pointers/-no-opaque-pointers cc1 options

This adds cc1 options for enabling and disabling opaque pointers
on the clang side. This is not super useful now (because
-mllvm -opaque-pointers and -Xclang -opaque-pointers have the same
visible effect) but will be important once opaque pointers are
enabled by default in clang. In that case, it will only be
possible to disable them using the cc1 -no-opaque-pointers option.

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




More information about the All-commits mailing list