[all-commits] [llvm/llvm-project] 7b23f4: MCAsmStreamer: Omit initial ".text"
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Dec 22 22:04:08 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b23f413d1f76532825e470b523e971818d453ca
https://github.com/llvm/llvm-project/commit/7b23f413d1f76532825e470b523e971818d453ca
Author: Fangrui Song <i at maskray.me>
Date: 2024-12-22 (Sun, 22 Dec 2024)
Changed paths:
M llvm/include/llvm/MC/MCStreamer.h
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/lib/MC/MCAsmStreamer.cpp
M llvm/lib/MC/MCStreamer.cpp
M llvm/test/CodeGen/PowerPC/check-cpu.ll
M llvm/test/CodeGen/X86/coff-alias-type.ll
M llvm/test/DebugInfo/ARM/header.ll
M llvm/test/DebugInfo/X86/header.ll
M llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
M llvm/test/MC/ELF/section.s
M llvm/test/MC/Hexagon/hexagon_attributes.s
Log Message:
-----------
MCAsmStreamer: Omit initial ".text"
llvm-mc --assemble prints an initial `.text` from `initSections`.
This is weird for quick assembly tasks that do not specify `.text`.
Omit the .text by moving section directive printing from `changeSection`
to `switchSection`. switchSectionNoPrint now correctly calls the
`changeSection` hook (needed by MachO).
The initial directives of clang -S are now reordered. On ELF targets, we
get `.file "a.c"; .text` instead of `.text; .file "a.c"`.
If there is no function, `.text` will be omitted.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list