aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/MCNullStreamer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp
index fcdd087e67..61a9d49bcc 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) {}