summaryrefslogtreecommitdiff
path: root/lib/MC/MCSectionELF.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-17 20:03:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-17 20:03:54 +0000
commitf2dc4aa562e2478a73fe5aeeeec16b1e496a0642 (patch)
treead08e8d349da1a581a63782de47253d55166bb62 /lib/MC/MCSectionELF.cpp
parent46c478e80255bb1475e712ebb119808a9d0b9e12 (diff)
downloadllvm-f2dc4aa562e2478a73fe5aeeeec16b1e496a0642.tar.gz
llvm-f2dc4aa562e2478a73fe5aeeeec16b1e496a0642.tar.bz2
llvm-f2dc4aa562e2478a73fe5aeeeec16b1e496a0642.tar.xz
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
Diffstat (limited to 'lib/MC/MCSectionELF.cpp')
-rw-r--r--lib/MC/MCSectionELF.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp
index ab72a0ebf9..59568adf70 100644
--- a/lib/MC/MCSectionELF.cpp
+++ b/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.