mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01: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) llvm-svn: 203967
This commit is contained in:
parent
6f5320c729
commit
c1b4289823
@ -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…
Reference in New Issue
Block a user