aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorAlex Richardson <alexrichardson@google.com>2022-12-01 19:37:56 +0000
committerAlex Richardson <alexrichardson@google.com>2022-12-01 20:40:58 +0000
commitf3a17d059509c133d8d90d305c0b40bdcbfc1fef (patch)
tree8aed6d6b781ca342afc2310f5b8b5bfc3fd54382 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parenta11faeed446882a81e79d780125d93e7199df645 (diff)
downloadllvm-f3a17d059509c133d8d90d305c0b40bdcbfc1fef.zip
llvm-f3a17d059509c133d8d90d305c0b40bdcbfc1fef.tar.gz
llvm-f3a17d059509c133d8d90d305c0b40bdcbfc1fef.tar.bz2
[clang] Avoid duplicating ProgramAddressSpace in TargetInfo. NFCI
This value was added to clang/Basic in D111566, but is only used during codegen, where we can use the LLVM IR DataLayout instead. I noticed this because the downstream CHERI targets would have to also set this value for AArch64/RISC-V/MIPS. Instead of duplicating more information between LLVM IR and Clang, this patch moves getTargetAddressSpace(QualType T) to CodeGenTypes, where we can consult the DataLayout. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D138296
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions