Simplify the logic for deciding when to initialize the sections.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index 45f5f5834506cca45402ec3c49684606bfba9fa4..cdff074e97568d8900d6ab08fc50737a73a4e024 100644 (file)
@@ -163,7 +163,7 @@ bool AsmPrinter::doInitialization(Module &M) {
   const_cast<TargetLoweringObjectFile&>(getObjFileLowering())
     .Initialize(OutContext, TM);
 
-  OutStreamer.InitStreamer();
+  OutStreamer.InitSections(false);
 
   Mang = new Mangler(TM.getDataLayout());