summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCPureStreamer.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/MCPureStreamer.cpp
parentb5f1e46d30e3e0fa0a2a779b8434279c1715f136 (diff)
downloadbcm5719-llvm-58ac6e167722cc6ab187546062a1d23184976835.tar.gz
bcm5719-llvm-58ac6e167722cc6ab187546062a1d23184976835.zip
Add support for pushsection and popsection. Patch by Joerg Sonnenberger.
llvm-svn: 125629
Diffstat (limited to 'llvm/lib/MC/MCPureStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCPureStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCPureStreamer.cpp b/llvm/lib/MC/MCPureStreamer.cpp
index 5341844f740..6098e6b8f38 100644
--- a/llvm/lib/MC/MCPureStreamer.cpp
+++ b/llvm/lib/MC/MCPureStreamer.cpp
@@ -113,9 +113,9 @@ void MCPureStreamer::InitSections() {
void MCPureStreamer::EmitLabel(MCSymbol *Symbol) {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
assert(!Symbol->isVariable() && "Cannot emit a variable symbol!");
- assert(CurSection && "Cannot emit before setting section!");
+ assert(getCurrentSection() && "Cannot emit before setting section!");
- Symbol->setSection(*CurSection);
+ Symbol->setSection(*getCurrentSection());
MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol);
OpenPOWER on IntegriCloud