diff options
author | Fangrui Song <i@maskray.me> | 2025-08-03 15:45:35 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-08-03 15:45:36 -0700 |
commit | e640ca8b9adc390325e2c0406b0032dd24563c75 (patch) | |
tree | 8c1672f87d70be33cb9e1defdeabd531a0ef66d9 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 5570ce5cefdae8f5c16b3733a594bc509ece990b (diff) | |
download | llvm-e640ca8b9adc390325e2c0406b0032dd24563c75.zip llvm-e640ca8b9adc390325e2c0406b0032dd24563c75.tar.gz llvm-e640ca8b9adc390325e2c0406b0032dd24563c75.tar.bz2 |
MCSymbolELF: Migrate away from 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/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index e9172f4..37c6dc9 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -402,8 +402,8 @@ void TargetLoweringObjectFileELF::emitPersonalityValue( const MachineModuleInfo *MMI) const { SmallString<64> NameData("DW.ref."); NameData += Sym->getName(); - MCSymbolELF *Label = - cast<MCSymbolELF>(getContext().getOrCreateSymbol(NameData)); + auto *Label = + static_cast<MCSymbolELF *>(getContext().getOrCreateSymbol(NameData)); Streamer.emitSymbolAttribute(Label, MCSA_Hidden); Streamer.emitSymbolAttribute(Label, MCSA_Weak); unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP; |