summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-14 20:36:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-14 20:36:44 +0000
commitc75ec15881f0b86b4c104c404d307f85087a1de7 (patch)
tree3be8c96727fe9785dce28dac35733794a53ac134
parent19f2fea4614de01f159dc2337a3aae32f023250c (diff)
downloadllvm-c75ec15881f0b86b4c104c404d307f85087a1de7.tar.gz
llvm-c75ec15881f0b86b4c104c404d307f85087a1de7.tar.bz2
llvm-c75ec15881f0b86b4c104c404d307f85087a1de7.tar.xz
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
-rw-r--r--include/llvm/MC/MCDwarf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h
index 2a878c5b1b..abd2f7a2d6 100644
--- a/include/llvm/MC/MCDwarf.h
+++ b/include/llvm/MC/MCDwarf.h
@@ -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;
};