[TableGen] Restructure a loop to make it exit early instead of skipping a portion...
[oota-llvm.git] / lib / MC / MCAsmInfoELF.cpp
index 2fe626e6e0d4142874a8a074264b718da10513ea..cd61a43afc4becdb49f5f7900a02528c48f23146 100644 (file)
@@ -22,8 +22,7 @@ void MCAsmInfoELF::anchor() { }
 
 const MCSection *
 MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
-  return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
-                           0, SectionKind::getMetadata());
+  return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
 }
 
 MCAsmInfoELF::MCAsmInfoELF() {