null streamer needs to maintain the current section as well.
authorChris Lattner <sabre@nondot.org>
Tue, 18 Aug 2009 16:46:29 +0000 (16:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Aug 2009 16:46:29 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79343 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCNullStreamer.cpp

index fcdd087e67ac4c1e0d07405e604f7fb9acbdd32e..61a9d49bcc989d6404d8f44f0d75029a42df57e7 100644 (file)
@@ -26,7 +26,9 @@ namespace {
     /// @name MCStreamer Interface
     /// @{
 
-    virtual void SwitchSection(const MCSection *Section) {}
+    virtual void SwitchSection(const MCSection *Section) {
+      CurSection = Section;
+    }
 
     virtual void EmitLabel(MCSymbol *Symbol) {}