mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
make the NullStreamer set the section on a label when emitted so that isDefined() works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,7 +29,11 @@ namespace {
|
|||||||
CurSection = Section;
|
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) {}
|
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user