From 4d35fce60c5ac108d24428829e51a97eeca7836c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Aug 2009 16:46:29 +0000 Subject: [PATCH] null streamer needs to maintain the current section as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79343 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCNullStreamer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp index fcdd087e67a..61a9d49bcc9 100644 --- a/lib/MC/MCNullStreamer.cpp +++ b/lib/MC/MCNullStreamer.cpp @@ -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) {} -- 2.34.1