Skip to content

Commit 9d7558a

Browse files
MaskRaymahesh-attarde
authored andcommitted
MCSectionMachO: 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.
1 parent 411fb3b commit 9d7558a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/include/llvm/MC/MCSectionMachO.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ class LLVM_ABI MCSectionMachO final : public MCSection {
8787

8888
unsigned getLayoutOrder() const { return LayoutOrder; }
8989
void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
90-
91-
static bool classof(const MCSection *S) {
92-
return S->getVariant() == SV_MachO;
93-
}
9490
};
9591

9692
} // end namespace llvm

0 commit comments

Comments
 (0)