aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-08-22 15:56:46 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-08-24 09:16:04 -0700
commitb9d78bdc730b2fcfe029a7579c24020536c3fa25 (patch)
tree17449dea492c55eaa89a03eff8463b202fc2a285 /llvm/lib/CodeGen/BasicBlockSections.cpp
parent41db54380763c5a60bdc0e1876149db61993c98d (diff)
downloadllvm-b9d78bdc730b2fcfe029a7579c24020536c3fa25.zip
llvm-b9d78bdc730b2fcfe029a7579c24020536c3fa25.tar.gz
llvm-b9d78bdc730b2fcfe029a7579c24020536c3fa25.tar.bz2
[clang][modules] Use relative offsets for input files
This patch replaces absolute offsets into the input files block with offsets relative to the block start. This makes the whole section "relocatable". I confirmed all other uses of `GetCurrentBitNo()` are turned into relative offsets before being serialized into the AST file. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D158572
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions