mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
MCDwarf: Initialize MCLineTableHeader::Label
This sometimes remains null into MCLineTableHeader::Emit where we conditionally construct a label if one isn't provided for us. We need it to remain null (rather than just always constructing the label) so we can identify unused line tables... which is a bit weird and maybe we can do away with that logic one day (& on that day we can always construct the label up-front and just have compilation units query the line table for its label, etc) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19f2fea461
commit
c75ec15881
@ -179,6 +179,7 @@ struct MCDwarfLineTableHeader {
|
||||
MCSymbol *Label;
|
||||
SmallVector<std::string, 3> MCDwarfDirs;
|
||||
SmallVector<MCDwarfFile, 3> MCDwarfFiles;
|
||||
MCDwarfLineTableHeader() : Label(nullptr) {}
|
||||
unsigned getFile(StringRef Directory, StringRef FileName, unsigned FileNumber);
|
||||
std::pair<MCSymbol *, MCSymbol *> Emit(MCStreamer *MCOS) const;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user