aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-08-03 18:59:35 -0700
committerFangrui Song <i@maskray.me>2025-08-03 18:59:35 -0700
commit2d4ecba957a6cd3b5228e0773ec2d52d8bc5c505 (patch)
tree59fa314e730bc3e5493fcf4b589a603440d22238 /llvm/lib/MC/MCMachOStreamer.cpp
parent9a60841dc446e954cd81d33da96e6566d617a810 (diff)
downloadllvm-2d4ecba957a6cd3b5228e0773ec2d52d8bc5c505.zip
llvm-2d4ecba957a6cd3b5228e0773ec2d52d8bc5c505.tar.gz
llvm-2d4ecba957a6cd3b5228e0773ec2d52d8bc5c505.tar.bz2
MCSymbolMachO: Remove classof
The object file format specific derived classes are used in context where the type is statically known. We don't use isa/dyn_cast and we want to eliminate MCSymbol::Kind in the base class.
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 c850ed9..6226b02 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -160,7 +160,7 @@ void MCMachOStreamer::emitEHSymAttributes(const MCSymbol *Symbol,
void MCMachOStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) {
// We have to create a new fragment if this is an atom defining symbol,
// fragments cannot span atoms.
- if (cast<MCSymbolMachO>(Symbol)->isSymbolLinkerVisible())
+ if (static_cast<MCSymbolMachO *>(Symbol)->isSymbolLinkerVisible())
newFragment();
MCObjectStreamer::emitLabel(Symbol, Loc);