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/MC/MCSectionELF.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/MC/MCSectionELF.cpp') diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index ab72a0ebf96..59568adf708 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -107,6 +107,10 @@ bool MCSectionELF::UseCodeAlign() const { return getFlags() & MCSectionELF::SHF_EXECINSTR; } +bool MCSectionELF::isVirtualSection() const { + return getType() == MCSectionELF::SHT_NOBITS; +} + // HasCommonSymbols - True if this section holds common symbols, this is // indicated on the ELF object file by a symbol with SHN_COMMON section // header index. -- cgit v1.2.3