Make AsmStreamer maintain a notion of the current section, pushing it up from the
authorChris Lattner <sabre@nondot.org>
Tue, 18 Aug 2009 06:15:16 +0000 (06:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Aug 2009 06:15:16 +0000 (06:15 +0000)
commitdabf07c70a5e13a4560d75667fa5c7db28921a92
treebbaf94dcb552ae8dcfb382c406cb1c7685278508
parent6a66e585b8242b9764ec3343309697d24bb1e312
Make AsmStreamer maintain a notion of the current section, pushing it up from the
MCAsmStreamer.  Based on this, eliminate the current section from AsmPrinter.

While I'm at it, clean up the last of the horrible "switch to null section" stuff
and add an assert.  This change is in preparation for completely eliminating
asmprinter::switchtosection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79324 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCStreamer.cpp