diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-18 06:15:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-18 06:15:16 +0000 |
commit | dabf07c70a5e13a4560d75667fa5c7db28921a92 (patch) | |
tree | bbaf94dcb552ae8dcfb382c406cb1c7685278508 /lib/MC/MCAsmStreamer.cpp | |
parent | 6a66e585b8242b9764ec3343309697d24bb1e312 (diff) | |
download | llvm-dabf07c70a5e13a4560d75667fa5c7db28921a92.tar.gz llvm-dabf07c70a5e13a4560d75667fa5c7db28921a92.tar.bz2 llvm-dabf07c70a5e13a4560d75667fa5c7db28921a92.tar.xz |
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
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 60d66f93af..cb3642532c 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -24,12 +24,10 @@ class MCAsmStreamer : public MCStreamer { raw_ostream &OS; const TargetAsmInfo &TAI; AsmPrinter *Printer; - const MCSection *CurSection; public: MCAsmStreamer(MCContext &Context, raw_ostream &_OS, const TargetAsmInfo &tai, AsmPrinter *_AsmPrinter) - : MCStreamer(Context), OS(_OS), TAI(tai), Printer(_AsmPrinter), - CurSection(0) {} + : MCStreamer(Context), OS(_OS), TAI(tai), Printer(_AsmPrinter) {} ~MCAsmStreamer() {} /// @name MCStreamer Interface |