aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCNullStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-16 01:08:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-16 01:08:29 +0000
commit58ac6e167722cc6ab187546062a1d23184976835 (patch)
tree2e5643c7d5ee0e6fa7b52588c6fea11251e4910e /llvm/lib/MC/MCNullStreamer.cpp
parentb5f1e46d30e3e0fa0a2a779b8434279c1715f136 (diff)
downloadllvm-58ac6e167722cc6ab187546062a1d23184976835.zip
llvm-58ac6e167722cc6ab187546062a1d23184976835.tar.gz
llvm-58ac6e167722cc6ab187546062a1d23184976835.tar.bz2
Add support for pushsection and popsection. Patch by Joerg Sonnenberger.
llvm-svn: 125629
Diffstat (limited to 'llvm/lib/MC/MCNullStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCNullStreamer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp
index b9393ff..08ddf01 100644
--- a/llvm/lib/MC/MCNullStreamer.cpp
+++ b/llvm/lib/MC/MCNullStreamer.cpp
@@ -28,15 +28,13 @@ namespace {
virtual void InitSections() {
}
- virtual void SwitchSection(const MCSection *Section) {
- PrevSection = CurSection;
- CurSection = Section;
+ virtual void ChangeSection(const MCSection *Section) {
}
virtual void EmitLabel(MCSymbol *Symbol) {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
- assert(CurSection && "Cannot emit before setting section!");
- Symbol->setSection(*CurSection);
+ assert(getCurrentSection() && "Cannot emit before setting section!");
+ Symbol->setSection(*getCurrentSection());
}
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}