From c75ec15881f0b86b4c104c404d307f85087a1de7 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 14 Mar 2014 20:36:44 +0000 Subject: [PATCH] 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 --- include/llvm/MC/MCDwarf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index 2a878c5b1b2..abd2f7a2d69 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -179,6 +179,7 @@ struct MCDwarfLineTableHeader { MCSymbol *Label; SmallVector MCDwarfDirs; SmallVector MCDwarfFiles; + MCDwarfLineTableHeader() : Label(nullptr) {} unsigned getFile(StringRef Directory, StringRef FileName, unsigned FileNumber); std::pair Emit(MCStreamer *MCOS) const; };