From 7a2cd8b5401ef57af7bd5164c4305961708fe264 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 17 Nov 2010 20:03:54 +0000 Subject: make isVirtualSection a virtual method on MCSection. Chris' suggestion. llvm-svn: 119547 --- llvm/lib/Target/PowerPC/PPCAsmBackend.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/Target/PowerPC/PPCAsmBackend.cpp') diff --git a/llvm/lib/Target/PowerPC/PPCAsmBackend.cpp b/llvm/lib/Target/PowerPC/PPCAsmBackend.cpp index a6d1426daf0..6a6177063f5 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmBackend.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmBackend.cpp @@ -68,13 +68,6 @@ namespace { assert(0 && "UNIMP"); } - bool isVirtualSection(const MCSection &Section) const { - const MCSectionMachO &SMO = static_cast(Section); - return (SMO.getType() == MCSectionMachO::S_ZEROFILL || - SMO.getType() == MCSectionMachO::S_GB_ZEROFILL || - SMO.getType() == MCSectionMachO::S_THREAD_LOCAL_ZEROFILL); - } - MCObjectWriter *createObjectWriter(raw_ostream &OS) const { bool is64 = getPointerSize() == 8; return createMachObjectWriter(OS, /*Is64Bit=*/is64, -- cgit v1.2.3