make isVirtualSection a virtual method on MCSection. Chris' suggestion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2010-11-17 20:03:54 +00:00
parent 46c478e802
commit f2dc4aa562
14 changed files with 28 additions and 52 deletions

View File

@@ -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.