[all-commits] [llvm/llvm-project] c4c235: [ASTContext] Avoid duplicating address space map. ...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Fri Dec 16 03:28:44 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4c23527d6c919bfd781fae0f7a82b9271b6429e
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-16 (Fri, 16 Dec 2022)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Basic/TargetInfo.cpp

  Log Message:
  [ASTContext] Avoid duplicating address space map. NFCI

ASTContext was holding onto a pointer to the Clang->LLVM address space map
which is stored inside TargetInfo. Instead of doing this, we can forward to
TargetInfo instead. This change will allow us to eventually remove
getTargetAddressSpace() from ASTContext and only have this information in

Reviewed By: rjmccall

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

More information about the All-commits mailing list