[all-commits] [llvm/llvm-project] c26c5e: [MC] flushPendingLabels: set Atom for new fragment...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Jun 18 15:14:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c26c5e47ab9ca60835f191c90fa751e9a7dd0f3d
https://github.com/llvm/llvm-project/commit/c26c5e47ab9ca60835f191c90fa751e9a7dd0f3d
Author: Fangrui Song <i at maskray.me>
Date: 2023-06-18 (Sun, 18 Jun 2023)
Changed paths:
M llvm/lib/MC/MCSection.cpp
Log Message:
-----------
[MC] flushPendingLabels: set Atom for new fragment after D71368
The newly created MCDataFragment should inherit Atom (see
MCMachOStreamer::finishImpl). I cannot think of a case to test the
behavior, but this is one step towards folding the Mach-O label
difference below and making Mach-O more similar to ELF.
```
.section __DATA,xray_instr_map
lxray_sleds_start1:
.space 16
Lxray_sleds_end1:
.section __DATA,xray_fn_idx
.quad (Lxray_sleds_end1-lxray_sleds_start1)>>4 // error: expected relocatable expression // Mach-O
```
More information about the All-commits
mailing list