diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-18 16:46:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-18 16:46:29 +0000 |
commit | 97455afc5dfd844130075a8b062ff05984c3c16c (patch) | |
tree | 32a7215be08165790a45071d4de6d190d1215083 | |
parent | ca462fb364346e56873561bb2d8329f99e3c3610 (diff) | |
download | external_llvm-97455afc5dfd844130075a8b062ff05984c3c16c.zip external_llvm-97455afc5dfd844130075a8b062ff05984c3c16c.tar.gz external_llvm-97455afc5dfd844130075a8b062ff05984c3c16c.tar.bz2 |
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
-rw-r--r-- | lib/MC/MCNullStreamer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp index fcdd087..61a9d49 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) {} |