[all-commits] [llvm/llvm-project] 7942eb: [clang] Add cc1 option for dumping layout for all ...

David Tenty via All-commits all-commits at lists.llvm.org
Tue Jun 22 13:27:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7942ebdf01b35fae240cd8a0550a3da9f03615c4
      https://github.com/llvm/llvm-project/commit/7942ebdf01b35fae240cd8a0550a3da9f03615c4
  Author: David Tenty <daltenty at ibm.com>
  Date:   2021-06-22 (Tue, 22 Jun 2021)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/AST/Decl.cpp
    A clang/test/Layout/dump-complete.cpp

  Log Message:
  -----------
  [clang] Add cc1 option for dumping layout for all complete types

This change adds an option which, in addition to dumping the record
layout as is done by -fdump-record-layouts, causes us to compute the
layout for all complete record types (rather than the as-needed basis
which is usually done by clang), so that we will dump them as well.
This is useful if we are looking for layout differences across large
code bases without needing to instantiate every type we are interested in.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list