diff options
author | Jason Molenda <jason@molenda.com> | 2021-04-16 16:10:16 -0700 |
---|---|---|
committer | Jason Molenda <jason@molenda.com> | 2021-04-16 16:13:07 -0700 |
commit | e9fe788d326090cb6155c0dec90b44c932273dd3 (patch) | |
tree | f23cc6791a016f984e3ed909e224502d0408bb1c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 11707435ccb44a9377bfed407453e0646a159636 (diff) | |
download | llvm-e9fe788d326090cb6155c0dec90b44c932273dd3.zip llvm-e9fe788d326090cb6155c0dec90b44c932273dd3.tar.gz llvm-e9fe788d326090cb6155c0dec90b44c932273dd3.tar.bz2 |
Target::ReadMemory read from read-only binary file Section, not memory
Commiting this patch for Augusto Noronha who is getting set
up still.
This patch changes Target::ReadMemory so the default behavior
when a read is in a Section that is read-only is to fetch the
data from the local binary image, instead of reading it from
memory. Update all callers to use their old preferences
(the old prefer_file_cache bool) using the new API; we should
revisit these calls and see if they really intend to read
live memory, or if reading from a read-only Section would be
equivalent and important for performance-sensitive cases.
rdar://30634422
Differential revision: https://reviews.llvm.org/D100338
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions