Compute the ELF SectionKind from the flags.
[oota-llvm.git] / lib / MC / MCSectionELF.cpp
index a29bb97af8f85ba4219a58caba0d7a4817bb9e34..fb364c87a034dd15ebf42cf7e225dc326ffb42e3 100644 (file)
@@ -157,13 +157,3 @@ bool MCSectionELF::UseCodeAlign() const {
 bool MCSectionELF::isVirtualSection() const {
   return getType() == ELF::SHT_NOBITS;
 }
-
-unsigned MCSectionELF::DetermineEntrySize(SectionKind Kind) {
-  if (Kind.isMergeable1ByteCString()) return 1;
-  if (Kind.isMergeable2ByteCString()) return 2;
-  if (Kind.isMergeable4ByteCString()) return 4;
-  if (Kind.isMergeableConst4())       return 4;
-  if (Kind.isMergeableConst8())       return 8;
-  if (Kind.isMergeableConst16())      return 16;
-  return 0;
-}