aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-07-20 10:39:16 -0700
committerFangrui Song <i@maskray.me>2025-07-20 10:39:17 -0700
commit6201761e961f4d7ed08352d55134e6ef58ee5eb2 (patch)
tree5ff777fcca40b1e99a4727129aca587f33dcf9ef /llvm/lib/MC/MCMachOStreamer.cpp
parent343f7475bed009e31ad1d5655f462d53e46ca9fa (diff)
downloadllvm-6201761e961f4d7ed08352d55134e6ef58ee5eb2.zip
llvm-6201761e961f4d7ed08352d55134e6ef58ee5eb2.tar.gz
llvm-6201761e961f4d7ed08352d55134e6ef58ee5eb2.tar.bz2
MC: Rename isVirtualSection to isBssSection
The term BSS (Block Started by Symbol) is a standard, widely recognized term, available in the a.out object file format and adopted by formats like COFF, XCOFF, Mach-O (called S_ZEROFILL while `__bss` is also used), and ELF. To avoid introducing unfamiliar terms, we should use isBSSSection instead of isVirtualSection.
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 08d2b93..e8bbb53 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -393,7 +393,7 @@ void MCMachOStreamer::emitZerofill(MCSection *Section, MCSymbol *Symbol,
// On darwin all virtual sections have zerofill type. Disallow the usage of
// .zerofill in non-virtual functions. If something similar is needed, use
// .space or .zero.
- if (!Section->isVirtualSection()) {
+ if (!Section->isBssSection()) {
getContext().reportError(
Loc, "The usage of .zerofill is restricted to sections of "
"ZEROFILL type. Use .zero or .space instead.");