diff options
author | Fangrui Song <i@maskray.me> | 2025-07-25 09:50:18 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-07-25 09:50:19 -0700 |
commit | 2571924ad6b8ca4a914ef613677cc41079224428 (patch) | |
tree | 3969cdb577567d7fa7c6befdaae646cb465135d3 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | ae5537e0141112ee38443951b732f9e76bfa6706 (diff) | |
download | llvm-2571924ad6b8ca4a914ef613677cc41079224428.zip llvm-2571924ad6b8ca4a914ef613677cc41079224428.tar.gz llvm-2571924ad6b8ca4a914ef613677cc41079224428.tar.bz2 |
MCSectionELF: 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/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index a40ceaa..670bf25 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -995,7 +995,7 @@ MCSection *TargetLoweringObjectFileELF::getSectionForLSDA( if (!LSDASection || (!F.hasComdat() && !TM.getFunctionSections())) return LSDASection; - const auto *LSDA = cast<MCSectionELF>(LSDASection); + const auto *LSDA = static_cast<const MCSectionELF *>(LSDASection); unsigned Flags = LSDA->getFlags(); const MCSymbolELF *LinkedToSym = nullptr; StringRef Group; |