aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-04-27 15:21:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-04-27 15:21:19 +0000
commited708f9c1facb9928ef2f79503e7030c8f25b00d (patch)
treece83d9489789c813ec696ccf6aec5fff784e60f0 /lib/MC/MCObjectStreamer.cpp
parent089a246333eff6b9d01e5d4510809db14371628f (diff)
downloadexternal_llvm-ed708f9c1facb9928ef2f79503e7030c8f25b00d.zip
external_llvm-ed708f9c1facb9928ef2f79503e7030c8f25b00d.tar.gz
external_llvm-ed708f9c1facb9928ef2f79503e7030c8f25b00d.tar.bz2
Factor a bit of code to MCStreamer::EmitLabel. Keep track of the last
non private symbol. This will be use for handling foo: .cfi_startproc ... On OS X where we have to create a foo.eh symbol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectStreamer.cpp')
-rw-r--r--lib/MC/MCObjectStreamer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp
index 8beeeb7..ca1919a 100644
--- a/lib/MC/MCObjectStreamer.cpp
+++ b/lib/MC/MCObjectStreamer.cpp
@@ -107,10 +107,7 @@ void MCObjectStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
}
void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) {
- assert(!Symbol->isVariable() && "Cannot emit a variable symbol!");
- assert(getCurrentSection() && "Cannot emit before setting section!");
-
- Symbol->setSection(*getCurrentSection());
+ MCStreamer::EmitLabel(Symbol);
MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol);