diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-27 15:21:19 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-27 15:21:19 +0000 |
commit | ed708f9c1facb9928ef2f79503e7030c8f25b00d (patch) | |
tree | ce83d9489789c813ec696ccf6aec5fff784e60f0 /lib/MC/MCObjectStreamer.cpp | |
parent | 089a246333eff6b9d01e5d4510809db14371628f (diff) | |
download | external_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.cpp | 5 |
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); |