[PATCH] D138316: [ASTContext] Avoid duplicating address space map. NFCI
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 18 11:56:42 PST 2022
arichardson created this revision.
arichardson added reviewers: clang, pcc.
Herald added a project: All.
arichardson requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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
TargetInfo.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138316
Files:
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/Basic/TargetInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138316.476552.patch
Type: text/x-patch
Size: 3802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221118/3adb7100/attachment.bin>
More information about the cfe-commits
mailing list