diff options
author | Fangrui Song <i@maskray.me> | 2025-07-26 09:30:01 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-07-26 09:30:02 -0700 |
commit | c2faf6a57fe7abb27a27e3b22c4e827a1a0c26ef (patch) | |
tree | 94dc90c0d187a0e3db779e13926e28844979d9a3 /llvm/lib/MC/WasmObjectWriter.cpp | |
parent | fa3ec0c17c48349e6027710d234c83e7bfeaf854 (diff) | |
download | llvm-c2faf6a57fe7abb27a27e3b22c4e827a1a0c26ef.zip llvm-c2faf6a57fe7abb27a27e3b22c4e827a1a0c26ef.tar.gz llvm-c2faf6a57fe7abb27a27e3b22c4e827a1a0c26ef.tar.bz2 |
MCSectionWasm: Remove classof
The object file format specific derived classes are used in context like
MCStreamer and MCObjectTargetWriter where the type is statically known.
We don't use isa/dyn_cast and we want to eliminate
MCSection::SectionVariant in the base class.
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index 3b99af4..bfd6334 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -480,7 +480,7 @@ void WasmObjectWriter::recordRelocation(const MCFragment &F, // The WebAssembly backend should never generate FKF_IsPCRel fixups assert(!Fixup.isPCRel()); - const auto &FixupSection = cast<MCSectionWasm>(*F.getParent()); + const auto &FixupSection = static_cast<MCSectionWasm &>(*F.getParent()); uint64_t C = Target.getConstant(); uint64_t FixupOffset = Asm->getFragmentOffset(F) + Fixup.getOffset(); MCContext &Ctx = getContext(); |