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 | f446070b62308210036910d7e6a179cc248295d7 (patch) | |
| tree | 74d99e4d829932651705a8b7d977207683e0febb /llvm/lib/MC/MCNullStreamer.cpp | |
| parent | a192947509198b9e4cc2386937a93a7423563084 (diff) | |
| download | bcm5719-llvm-f446070b62308210036910d7e6a179cc248295d7.tar.gz bcm5719-llvm-f446070b62308210036910d7e6a179cc248295d7.zip | |
null streamer needs to maintain the current section as well.
llvm-svn: 79343
Diffstat (limited to 'llvm/lib/MC/MCNullStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCNullStreamer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp index fcdd087e67a..61a9d49bcc9 100644 --- a/llvm/lib/MC/MCNullStreamer.cpp +++ b/llvm/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) {} |

