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:
parent
189a55cc16
commit
13cbdb1549
@ -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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user