1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

make the NullStreamer set the section on a label when emitted so that isDefined() works.

llvm-svn: 98100
This commit is contained in:
Chris Lattner 2010-03-09 23:12:18 +00:00
parent 189a55cc16
commit 13cbdb1549

View File

@ -29,7 +29,11 @@ namespace {
CurSection = Section;
}
virtual void EmitLabel(MCSymbol *Symbol) {}
virtual void EmitLabel(MCSymbol *Symbol) {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
assert(CurSection && "Cannot emit before setting section!");
Symbol->setSection(*CurSection);
}
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}