Force the MachO generated for Darwin to have VERSION_MIN load command
[oota-llvm.git] / lib / MC / MCAsmInfoELF.cpp
index 2fe626e6e0d4142874a8a074264b718da10513ea..2bff6e059663751be310c777094e8dda95b81bad 100644 (file)
@@ -20,10 +20,8 @@ using namespace llvm;
 
 void MCAsmInfoELF::anchor() { }
 
-const MCSection *
-MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
-  return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
-                           0, SectionKind::getMetadata());
+MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
+  return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
 }
 
 MCAsmInfoELF::MCAsmInfoELF() {