[all-commits] [llvm/llvm-project] 73733a: TypeInfo records more information about align requ...

Steven Wan via All-commits all-commits at lists.llvm.org
Sat Aug 28 16:48:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73733ae526a5152e5427973ac12dc54f7dd243fb
      https://github.com/llvm/llvm-project/commit/73733ae526a5152e5427973ac12dc54f7dd243fb
  Author: Steven Wan <wanyu9511 at gmail.com>
  Date:   2021-08-28 (Sat, 28 Aug 2021)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/RecordLayoutBuilder.cpp
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/lib/CodeGen/TargetInfo.cpp

  Log Message:
  -----------
  TypeInfo records more information about align requirement

Extend the information preserved in `TypeInfo` by replacing the `AlignIsRequired` bool flag with a three-valued enum, the enum also indicates where the alignment attribute come from, which could be helpful in determining whether the attribute should overrule.

Reviewed By: rjmccall

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




More information about the All-commits mailing list