Add support for subsections to the ELF assembler. Fixes PR8717.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index d4a745d985e83f8d2c79ab641fec43c7f414a69f..2d13db2c9c90cd4d4eaa33a3f3da29679c3fa487 100644 (file)
@@ -135,7 +135,7 @@ const DataLayout &AsmPrinter::getDataLayout() const {
 
 /// getCurrentSection() - Return the current section we are emitting to.
 const MCSection *AsmPrinter::getCurrentSection() const {
-  return OutStreamer.getCurrentSection();
+  return OutStreamer.getCurrentSection().first;
 }