[all-commits] [llvm/llvm-project] 9a62d9: [JITLink][MachO] Fix alignment bug in the c-string...
lhames via All-commits
all-commits at lists.llvm.org
Tue Apr 5 17:39:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a62d9db2e1f6064e6c20344870f5e9d43a8de43
https://github.com/llvm/llvm-project/commit/9a62d9db2e1f6064e6c20344870f5e9d43a8de43
Author: Lang Hames <lhames at gmail.com>
Date: 2022-04-05 (Tue, 05 Apr 2022)
Changed paths:
M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
M llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
A llvm/test/ExecutionEngine/JITLink/X86/MachO_cstring_section_alignment.s
Log Message:
-----------
[JITLink][MachO] Fix alignment bug in the c-string literal section graphifier.
This function had been assuming a 1-byte alignment, which isn't always correct.
This commit updates it to take the alignment from the __cstring section.
The key change is to the createContentBlock call, but the surrounding code is
updated with clearer debugging output to support the testcase (and any future
debugging work).
More information about the All-commits
mailing list